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

Disassembly:
mov eax, 0x520ab5
call fcn.004e66c0
sub esp, 0x408
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x70], ebx
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0x10]
mov dword [ebx + 4], eax
call fcn.00432eca
mov cl, byte [ebp + 0x17]
lea edi, [ebx + 0x14]
xor eax, eax
mov dword [ebp - 4], eax
mov byte [edi], cl
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea ecx, [ebx + 0x24]
mov byte [ebp - 4], 1
call fcn.004333ee
lea ecx, [ebx + 0x28]
mov byte [ebp - 4], 2
call fcn.004336c9
lea ecx, [ebx + 0x48]
mov byte [ebp - 4], 3
call fcn.0043376a
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 4
call fcn.0043ac90
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 5
call fcn.00433917
mov ecx, 0x536214
mov eax, ecx
mov edx, dword [eax]
cmp edx, dword [ebp - 0x410]
je 0x41f0ae
add eax, 4
cmp eax, 0x536224
jne 0x41f09a
sub eax, ecx
lea esi, [ebx + 0x10]
sar eax, 2
mov dword [ebx + 8], eax
mov al, byte [ebp - 0x40c]
mov ecx, esi
mov byte [ebx + 0xc], al
call fcn.0042dbba
push dword [0x530940]
lea ecx, [ebp - 0x408]
push 0
push ecx
mov ecx, eax
call fcn.0040199c
mov ecx, esi
call fcn.0042dbba
mov eax, dword [eax + 8]
cmp eax, 0x1e
jbe 0x41f104
mov ecx, esi
call fcn.0042dbba
push dword [0x530940]
mov ecx, eax
push 0x1e
call fcn.00401a9f
mov ecx, esi
call fcn.0042dbba
push dword [0x530940]
lea ecx, [ebp - 0x3f8]
add eax, 0x10
push 0
push ecx
mov ecx, eax
call fcn.0040199c
mov ecx, esi
call fcn.0042dbba
mov eax, dword [eax + 0x18]
cmp eax, 0x12c
jbe 0x41f14f
mov ecx, esi
call fcn.0042dbba
push dword [0x530940]
lea ecx, [eax + 0x10]
push 0x12c
call fcn.00401a9f
mov ecx, esi
call fcn.0042dbba
mov ecx, dword [ebp - 0x3e8]
mov dword [eax + 0x20], ecx
mov ecx, esi
call fcn.0042dbba
mov ecx, dword [ebp - 0x3e4]
mov dword [eax + 0x24], ecx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0042d4e4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0xc8]
je 0x41f1ee
mov ecx, esi
call fcn.0042dbba
lea ecx, [eax + 0x78]
call fcn.0042d974
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc]
lea eax, [eax + edx*4]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
je 0x41f1ba
mov ecx, dword [ebp + 8]
push eax
call fcn.0044a2f3
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x1c], 0
je 0x41f1cf
add ecx, 0x14
push ecx
mov ecx, dword [ebp + 8]
call fcn.0044a136
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x24]
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call fcn.0044a339
lea ecx, [ebp - 0x28]
call fcn.0042d68a
mov eax, dword [ebp - 0x28]
jmp 0x41f183
cmp dword [ebp + 0x14], 0x1b
jl 0x41f20f
mov ecx, esi
call fcn.0042dbba
add eax, 0x54
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0043394f
pop ecx
pop ecx
jmp 0x41f2a0
cmp dword [ebp + 0x14], 0x15
jl 0x41f258
push 0
lea ecx, [ebp - 0x44]
call fcn.0042de95
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00433992
pop ecx
pop ecx
mov ecx, esi
call fcn.0042dbba
xor edx, edx
add eax, 0x54
push edx
push eax
mov eax, 0x81
lea ecx, [ebp - 0x44]
push eax
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004339d5
jmp 0x41f29d
cmp dword [ebp + 0x14], 0x14
jl 0x41f2a0
push 0
lea ecx, [ebp - 0x40]
call fcn.0042deb5
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00433a21
pop ecx
pop ecx
mov ecx, esi
call fcn.0042dbba
xor edx, edx
add eax, 0x54
push edx
push eax
push 0x7f
lea ecx, [ebp - 0x40]
pop eax
push eax
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00433a61
add esp, 0x1c
cmp dword [ebp + 0x14], 0x16
jl 0x41f2d2
mov ecx, esi
call fcn.0042dbba
add eax, 0x68
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00433aad
pop ecx
pop ecx
mov ecx, esi
call fcn.0042dbba
add eax, 0x74
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00433aed
pop ecx
pop ecx
mov ecx, esi
call fcn.0042dbba
add eax, 0x30
mov ecx, eax
call fcn.0042d948
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00433b2a
pop ecx
pop ecx
mov ecx, esi
call fcn.0042dbba
add eax, 0x30
mov ecx, eax
call fcn.0042d948
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41f372
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 5
cmp eax, 0x1e
jbe 0x41f372
mov al, byte [ebp + 0x17]
push 0
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], al
call fcn.004016d9
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x40]
push eax
mov byte [ebp - 4], 6
call fcn.0042b675
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0042dbba
lea ecx, [ebp - 0x50]
add eax, 0x30
push ecx
push 0x1e
mov ecx, eax
call fcn.0042d948
mov ecx, eax
call fcn.0042c24b
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.004016d9
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 5
call fcn.004016d9
cmp dword [ebp + 0x14], 0x19
jl 0x41f386
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.004266c1
push dword [ebx + 8]
lea ecx, [ebp - 0x44]
call fcn.0042a174
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call fcn.0043286f
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xb
call fcn.0042a2ac
lea eax, [ebp + 8]
mov ecx, edi
push eax
xor eax, eax
cmp byte [ebx + 0xc], al
mov byte [ebp - 4], 0xc
setne al
inc eax
push eax
call fcn.0042c009
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.004328cc
push dword [ebx + 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.0042b417
cmp byte [ebx + 0xc], 0
pop ecx
pop ecx
je 0x41f3f5
mov eax, dword [ebx + 0x18]
add eax, 4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042b417
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040737e
mov al, byte [ebp + 0x17]
mov byte [ebp - 0x6c], al
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
call fcn.004900e0
push eax
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x1c]
call fcn.0042ba18
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x1c]
dec dword [ebp - 0x1c]
test eax, eax
jle 0x41f44d
mov eax, esi
add esi, 0x4c
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0049078b
pop ecx
pop ecx
jmp 0x41f430
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040737e
cmp dword [ebp - 0x18], 0
jle 0x41f6f4
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp + 0x13]
push eax
call fcn.00402412
mov ecx, eax
call fcn.00402412
mov ecx, eax
call fcn.00402412
mov ecx, eax
call fcn.0040737e
mov ecx, eax
call fcn.00433bd5
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x4c
add eax, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004224fe
movzx eax, byte [ebp + 0xf]
push eax
mov ecx, ebx
movzx eax, byte [ebp + 0x13]
push eax
mov byte [ebp - 4], 0xe
push dword [ebp - 0x34]
call fcn.004289a1
test al, al
jne 0x41f529
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
jle 0x41f6e8
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp + 0xf]
push eax
lea eax, [ebp + 0x13]
push eax
call fcn.00402412
mov ecx, eax
call fcn.00402412
mov ecx, eax
call fcn.00402412
mov ecx, eax
call fcn.0040737e
mov ecx, eax
call fcn.00433bd5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.0042bbee
jmp 0x41f49b
movzx eax, byte [ebp + 0xf]
push eax
movzx eax, byte [ebp + 0x13]
push eax
push ecx
push ecx
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.0042bc01
movzx eax, byte [ebp + 0xb]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.0042c068
mov ecx, eax
call fcn.0041fa70
movzx ecx, byte [ebp + 0xb]
mov esi, eax
mov eax, dword [ebx + 0x18]
push esi
lea eax, [eax + ecx*4]
mov ecx, eax
call fcn.0042d119
mov ecx, eax
call fcn.0042a33e
cmp byte [ebp + 0xb], 0
push 0
push esi
mov dword [ebp - 0x54], eax
setne cl
push ecx
push eax
mov ecx, ebx
call fcn.00433c0d
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
jle 0x41f6e8
push 0
push 0x583170
push 0x57d8c8
push 0
push dword [ebp - 0x54]
call fcn.004e7392
add esp, 0x14
test eax, eax
je 0x41f4e0
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00402412
mov ecx, eax
call fcn.00402412
mov ecx, eax
call fcn.00402412
mov ecx, eax
call fcn.0040737e
mov ecx, eax
call fcn.00433bd5
mov al, byte [ebp - 0x13]
cmp al, byte [ebp + 0x13]
jne 0x41f6bf
mov al, byte [ebp - 0x11]
cmp al, byte [ebp + 0xf]
jne 0x41f6bf
mov al, byte [ebp - 0x12]
cmp al, byte [ebp + 0xb]
jne 0x41f6bf
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x68]
imul eax, eax, 0x4c
add eax, ecx
mov ecx, dword [eax + 0x1c]
cmp ecx, 0x22
je 0x41f631
cmp ecx, 0x46
jne 0x41f6bf
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.004224fe
push 0
push 0x583138
push 0x57d8c8
push 0
push dword [ebp - 0x20]
mov byte [ebp - 4], 0x10
call fcn.004e7392
add esp, 0x14
cmp byte [ebp + 0xb], 0
setne cl
push esi
push ecx
push eax
mov ecx, ebx
call fcn.00420b01
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
jle 0x41f6dc
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00402412
mov ecx, eax
call fcn.00402412
mov ecx, eax
call fcn.00402412
mov ecx, eax
call fcn.0040737e
mov ecx, eax
call fcn.00433bd5
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.0042bbee
mov al, byte [ebp - 0x13]
mov byte [ebp + 0x13], al
mov al, byte [ebp - 0x11]
mov byte [ebp + 0xf], al
mov al, byte [ebp - 0x12]
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
jmp 0x41f518
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.0042bbee
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.0042bbee
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push eax
call fcn.0040737e
lea ecx, [ebp - 0xbc]
call fcn.004c033e
mov edi, eax
lea esi, [ebx + 0x10]
mov byte [ebp - 4], 0x11
mov ecx, esi
call fcn.0042dbba
lea ecx, [eax + 0x34]
call fcn.0042d95e
push edi
mov ecx, eax
push dword [ebp + 8]
call fcn.0042c4f6
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
call fcn.00416c93
cmp dword [ebp + 8], 0
jbe 0x41f776
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp + 8], eax
mov ecx, esi
call fcn.0042dbba
add eax, 0x34
mov ecx, eax
call fcn.0042d95e
push dword [ebp + 0x14]
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [eax + edi]
call fcn.004c03d2
add edi, 0x4c
dec dword [ebp + 8]
jne 0x41f74b
and dword [ebp + 8], 0
lea edi, [ebp - 0x3d8]
lea ecx, [ebx + 0x10]
call fcn.0042dbba
add eax, 0x28
mov ecx, eax
call fcn.0042d932
mov esi, eax
add esi, dword [ebp + 8]
mov al, byte [esi]
test al, 3
je 0x41f827
mov cl, byte [edi - 8]
mov dl, al
xor dl, cl
mov ecx, esi
and dl, 1
xor dl, al
mov byte [esi], dl
push dword [edi - 4]
call fcn.004067f9
cmp dword [ebp + 0x14], 0x1a
jl 0x41f7e6
cmp byte [edi], 0
je 0x41f7e6
push 0
lea ecx, [ebp - 0x24]
call fcn.0042ccae
mov eax, dword [edi + 4]
mov cl, byte [edi + 8]
or byte [esi], 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], cl
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
cmp dword [ebp + 0x14], 9
jl 0x41f827
cmp byte [edi + 9], 0
je 0x41f827
lea eax, [edi + 0x10]
push 0x41fac9
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, ebx
call fcn.00428ee8
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
call fcn.00493ff4
mov al, byte [edi + 0xa]
mov ecx, esi
push eax
call fcn.00494021
add dword [ebp + 8], 0x18
add edi, 0x54
cmp dword [ebp + 8], 0xc0
jl 0x41f780
cmp dword [ebp - 0x114], 0
jbe 0x41f8a0
mov eax, dword [ebx + 0x10]
cmp dword [eax], 1
jbe 0x41f854
lea ecx, [ebx + 0x10]
call fcn.0043336f
mov esi, dword [ebx + 0x10]
add esi, 0x30
mov eax, dword [esi]
cmp dword [eax], 1
jbe 0x41f868
mov ecx, esi
call fcn.00432a7d
mov esi, dword [esi]
mov byte [esi + 4], 1
push dword [ebp - 0x114]
add esi, 4
mov ecx, esi
call fcn.004067f9
and dword [ebp + 8], 0
lea edi, [ebp - 0x110]
push dword [edi]
mov ecx, esi
push dword [ebp + 8]
call fcn.004ba7c8
inc dword [ebp + 8]
add edi, 4
cmp dword [ebp + 8], 8
jl 0x41f888
push ecx
push ecx
lea ecx, [ebp - 0x140]
mov eax, esp
mov dword [ebp + 8], esp
push ecx
push eax
mov ecx, ebx
call fcn.00428f5d
lea ecx, [ebp + 8]
call fcn.00432bf1
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
mov byte [ebp - 4], 0x12
cmp dword [eax], 1
jbe 0x41f8d4
mov ecx, esi
call fcn.0043336f
mov ecx, dword [esi]
lea eax, [ebp + 8]
push eax
add ecx, 0x3c
call fcn.00432d33
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xd
call fcn.00432d13
push ecx
push ecx
lea ecx, [ebp - 0x124]
mov eax, esp
mov dword [ebp + 8], esp
push ecx
push eax
mov ecx, ebx
call fcn.00429346
lea ecx, [ebp + 8]
call fcn.00432c82
mov eax, dword [esi]
mov byte [ebp - 4], 0x13
cmp dword [eax], 1
jbe 0x41f91e
mov ecx, esi
call fcn.0043336f
mov ecx, dword [esi]
lea eax, [ebp + 8]
push eax
add ecx, 0x40
call fcn.00432d33
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xd
call fcn.00432d13
xor eax, eax
cmp dword [ebx + 4], 1
mov esi, dword [ebx + 0x24]
setge al
add eax, 0x38
cmp dword [ebp + 0x14], 0x12
mov dword [ebp + 0xc], eax
jl 0x41f9d4
push 5
add esi, 0x24
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov dword [ebp + 8], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.0042d4b4
test al, al
jne 0x41f9c4
push dword [ebp + 8]
lea ecx, [ebp - 0xf0]
call fcn.0042d4b4
test al, al
je 0x41f9a3
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edi]
mov eax, dword [0x58a718]
cmp byte [ecx + eax], 0
je 0x41f9a3
cmp dword [ebp + 0x14], 0x14
jge 0x41f9c4
cmp byte [edi + eax + 0x3a], 0
je 0x41f9c4
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
cmp dword [eax], 1
jbe 0x41f9b5
mov ecx, esi
call fcn.0043336f
mov ecx, dword [esi]
push 1
push dword [ebp + 8]
add ecx, 0x44
call fcn.0042d448
inc dword [ebp + 8]
add edi, 0x5c
cmp edi, 0x3810
jl 0x41f964
jmp 0x41fa42
push 5
add esi, 0x24
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov dword [ebp + 0x14], edi
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
call fcn.0043ba79
test al, al
jne 0x41fa34
mov eax, dword [0x58a718]
cmp byte [edi + eax + 0x3a], 0
jne 0x41fa13
mov ecx, dword [ebp + 0xc]
add ecx, edi
cmp byte [ecx + eax], 0
jne 0x41fa34
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
cmp dword [eax], 1
jbe 0x41fa25
mov ecx, esi
call fcn.0043336f
mov ecx, dword [esi]
push 1
push dword [ebp + 0x14]
add ecx, 0x44
call fcn.0042d448
inc dword [ebp + 0x14]
add edi, 0x5c
cmp edi, 0x3810
jl 0x41f9e4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 5
call fcn.004adef0
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 4
call fcn.0041faea
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10