Function at 0x41e39c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x58]
call fcn.00403250
mov dword [ebp - 0x10], eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
cmp dword [eax + 0x5c], 0
jbe 0x41e4a5
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.00404eec
push eax
call fcn.0041a67c
push 0
push 0
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x58]
mov ecx, 0x40
call fcn.0040d9d0
lea eax, [ebp - 0x24]
push eax
push 0
push 0x80
push 1
push 1
push 0x60
push 0
push 0
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x1c]
mov edx, 0x80100080
call fcn.0041bba8
test eax, eax
jne 0x41e49c
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x54]
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
push 8
push 0xe
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.0041bae8
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c]
call fcn.00403250
mov ebx, eax
push 0
lea eax, [ebp - 0x24]
push eax
push ebx
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c]
push eax
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.0041bb50
test eax, eax
jne 0x41e48d
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0041c6d0
mov eax, ebx
call fcn.00403270
mov eax, dword [ebp - 0x1c]
call fcn.0041bac8
lea eax, [ebp - 0x18]
push eax
call fcn.0041a68c
mov edx, dword [ebp - 0x10]
mov eax, edx
mov ebx, dword [eax + 0x3c]
add ebx, edx
push 0x40
push 0x1000
mov eax, dword [ebx + 0x50]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call fcn.00406db4
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x50]
call fcn.00403250
mov edi, eax
mov edx, dword [ebx + 0x50]
mov eax, edi
call fcn.00406e68
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00406e60
movzx esi, word [ebx + 6]
dec esi
test esi, esi
jl 0x41e53d
inc esi
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*4]
cmp dword [ebx + eax*8 + 0x10c], 0
jbe 0x41e537
mov edx, dword [ebx + eax*8 + 0x108]
push edx
mov edx, dword [ebp - 0xc]
lea edx, [edx + edx*4]
mov edx, dword [ebx + edx*8 + 0x10c]
add edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebx + eax*8 + 0x104]
add eax, edi
pop edx
pop ecx
call fcn.00406e60
inc dword [ebp - 0xc]
dec esi
jne 0x41e4fe
mov eax, dword [ebp - 0x10]
call fcn.00403270
mov esi, edi
mov eax, esi
mov ebx, dword [eax + 0x3c]
add ebx, esi
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x41e567
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebx + 0x34]
add eax, esi
mov edx, esi
call fcn.0041e14c
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x41e57a
add eax, esi
mov edx, esi
call fcn.0041e1bc
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp dword [ebx + 0x78], 0
je 0x41e594
mov edx, 0x4bcd4c
mov eax, edi
call fcn.0041e2cc
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebx + 0x50]
push eax
push edi
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call fcn.00406dfc
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call fcn.00406b54
mov eax, edi
call fcn.00403270
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.00404efc
mov ebx, eax
add ebx, ebx
add ebx, 0x88
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.00404efc
add eax, eax
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
call fcn.00404efc
add eax, eax
add ebx, eax
mov dword [ebp - 0xc], ebx
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
call fcn.004059a8
mov esi, eax
test esi, esi
jl 0x41e644
inc esi
xor edi, edi
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + edi*4]
call fcn.00404efc
add eax, eax
add eax, 2
add dword [ebp - 0xc], eax
inc edi
dec esi
jne 0x41e623
mov eax, dword [ebp - 0xc]
call fcn.00403250
mov ebx, eax
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00406e68
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x20]
mov dword [ebx + 0x28], edx
mov edx, dword [eax + 0x24]
mov dword [ebx + 0x2c], edx
mov al, byte [ebp - 5]
mov byte [ebx + 0x40], al
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x2c]
mov dword [ebx + 0x30], edx
mov edx, dword [eax + 0x30]
mov dword [ebx + 0x34], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x34]
mov dword [ebx + 0x38], edx
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x3c], edx
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.00404efc
add eax, eax
mov dword [ebx + 8], eax
mov eax, 0x88
mov dword [ebx + 0xc], eax
mov edx, dword [0x4d3194]
mov edx, dword [edx]
mov edx, dword [edx + 8]
mov esi, ebx
mov ecx, esi
add ecx, eax
mov eax, ecx
mov ecx, dword [ebx + 8]
call fcn.00406e60
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.00404efc
add eax, eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 8]
add eax, dword [ebx + 0xc]
mov dword [ebx + 0x14], eax
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov edx, dword [edx + 8]
mov ecx, esi
add ecx, eax
mov eax, ecx
mov ecx, dword [ebx + 0x10]
call fcn.00406e60
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov al, byte [eax + 0xc]
mov byte [ebx + 0x18], al
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
call fcn.00404efc
add eax, eax
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x14]
mov dword [ebx + 0x20], eax
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
add esi, eax
mov eax, esi
mov ecx, dword [ebx + 0x1c]
call fcn.00406e60
xor eax, eax
mov dword [ebx + 0x7c], eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebx + 0x20]
mov dword [ebx + 0x80], eax
mov edx, ebx
add edx, eax
mov dword [ebp - 0x40], edx
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
call fcn.004059a8
mov esi, eax
test esi, esi
jl 0x41e7df
inc esi
xor edi, edi
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + edi*4]
call fcn.00404efc
mov edx, dword [ebp - 0x40]
mov word [edx], ax
add dword [ebp - 0x40], 2
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + edi*4]
call fcn.00404efc
mov ecx, eax
add ecx, ecx
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
mov edx, dword [eax + edi*4]
mov eax, dword [ebp - 0x40]
call fcn.00406e60
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + edi*4]
call fcn.00404efc
add eax, eax
add dword [ebp - 0x40], eax
inc edi
dec esi
jne 0x41e771
mov eax, ebx
add eax, dword [ebx + 0x80]
mov edx, dword [ebp - 0x40]
sub edx, eax
mov dword [ebx + 0x7c], edx
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
mov dword [ebx + 0x44], eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [ebx + 0x48], eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x54]
mov dword [ebx + 0x4c], eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x58]
mov dword [ebx + 0x50], eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x5c]
mov dword [ebx + 0x54], eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dword [ebx + 0x58], eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x64]
mov dword [ebx + 0x5c], eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x68]
mov dword [ebx + 0x60], eax
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov al, byte [eax + 0x85]
mov byte [ebx + 0x64], al
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov al, byte [eax + 0x86]
mov byte [ebx + 0x65], al
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov edx, dword [eax + 0x88]
mov dword [ebx + 0x68], edx
mov edx, dword [eax + 0x8c]
mov dword [ebx + 0x6c], edx
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov al, byte [eax + 0x91]
mov byte [ebx + 0x71], al
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov al, byte [eax + 0x90]
mov byte [ebx + 0x70], al
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov al, byte [eax + 0x92]
mov byte [ebx + 0x72], al
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov al, byte [eax + 0x93]
mov byte [ebx + 0x73], al
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov al, byte [eax + 0x94]
mov byte [ebx + 0x74], al
mov eax, dword [0x4d3194]
mov eax, dword [eax]
mov eax, dword [eax + 0x98]
call fcn.004059a0
mov dword [ebx + 0x78], eax
push 4
push 0x1000
mov eax, dword [ebx]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call fcn.00406db4
mov esi, eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebx]
push eax
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
call fcn.00406dfc
mov eax, ebx
call fcn.00403270
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [eax + 0x1c], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret