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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 8], ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
cmp ebx, 2
jae 0x41d64d
push 0x53d0b4
push 0x100a4
push 0x53d048
push 0x53d02c
push 0xb
call fcn.00407720
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41d660
mov eax, dword [esi + 0x48]
inc word [eax + 0x1e]
mov eax, dword [eax + 0xc]
inc dword [eax + 0xc]
jmp 0x41d669
mov edx, ebx
call fcn.00418650
mov esi, eax
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 4
mov eax, dword [ecx + 0x14]
je 0x41d698
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x41d698
cmp dword [eax + 0x60], 0
je 0x41d68e
call fcn.004118e0
jmp 0x41d6c0
mov dword [esp + 0x20], 0
jmp 0x41d6d2
mov ebx, dword [eax + 0x28]
test ebx, ebx
jne 0x41da69
mov edx, dword [ecx + 0x14]
mov eax, dword [eax + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x41d6bb
call fcn.00413410
jmp 0x41d6c0
call fcn.00413340
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x41da69
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx + 0x24]
bswap eax
mov dword [esp + 0x24], eax
inc eax
bswap eax
mov dword [ecx + 0x24], eax
test byte [edi + 0x16], 4
je 0x41d7ad
test esi, esi
jne 0x41d738
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push esi
push ecx
push ebx
push eax
mov eax, dword [eax + 0xc8]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x41db28
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov esi, dword [ecx + 8]
cmp ebx, dword [esi + 4]
je 0x41d738
mov eax, dword [ecx + 4]
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x34], edi
mov dword [esi + 4], ebx
mov byte [esi + 9], 0
mov ecx, dword [esi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x41d763
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x41d763
cmp dword [edx + 0x60], 0
je 0x41d759
call fcn.004118e0
jmp 0x41d788
mov dword [esp + 0x20], 0
jmp 0x41d79a
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x41da69
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x41d783
call fcn.00413410
jmp 0x41d788
call fcn.00413340
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x41da69
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x34]
push dword [eax + 0x20]
push 0
push dword [esi + 0x38]
call fcn.004e8ed0
add esp, 0xc
cmp byte [edi + 0x11], 0
je 0x41d7d4
lea eax, [esp + 0x20]
mov edx, ebx
push eax
push 0
push 2
mov ecx, edi
call fcn.00417290
mov ebx, dword [esp + 0x2c]
add esp, 0xc
test ebx, ebx
jne 0x41da69
cmp dword [esp + 0x24], 0
je 0x41d9b0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push 0
push edx
mov eax, dword [eax + 0x38]
mov ecx, dword [eax + 0x20]
mov eax, dword [edi]
bswap ecx
push ecx
push eax
mov eax, dword [eax + 0xc8]
mov dword [esp + 0x2c], ecx
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x41da69
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov dword [esp + 0x14], edx
cmp ebx, dword [edx + 4]
je 0x41d83f
mov eax, dword [ecx + 4]
cmp ebx, 1
mov dword [edx + 0x38], eax
setne al
mov dword [edx + 0x48], ecx
dec al
mov dword [edx + 0x34], edi
and al, 0x64
mov dword [edx + 4], ebx
mov byte [edx + 9], al
mov eax, dword [edx + 0x38]
mov ebx, dword [edi + 0x24]
shr ebx, 2
mov ecx, dword [eax + 4]
bswap ecx
lea eax, [ebx - 2]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jbe 0x41d888
push 0x53d0b4
push 0x100d9
push 0x53d048
push 0x53d02c
push 0xb
call fcn.00407720
mov eax, dword [esp + 0x28]
add esp, 0x14
mov ebx, 0xb
mov dword [esp + 0x14], eax
jmp 0x41da69
lea eax, [ebx - 8]
cmp ecx, eax
jae 0x41d9b0
mov ecx, dword [edx + 0x48]
test byte [ecx + 0x1c], 4
mov ebx, dword [ecx + 0x14]
je 0x41d8b4
mov eax, dword [ebx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x41d8b4
cmp dword [ebx + 0x60], 0
je 0x41d8ea
call fcn.004118e0
jmp 0x41d8dc
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x41d992
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x41d8d7
call fcn.00413410
jmp 0x41d8dc
call fcn.00413340
mov edx, dword [esp + 0x14]
mov ebx, eax
test ebx, ebx
jne 0x41d992
mov ebx, dword [esp + 0x20]
mov eax, dword [edx + 0x38]
lea ecx, [ebx + 1]
bswap ecx
mov dword [eax + 4], ecx
mov eax, dword [edx + 0x38]
mov ecx, dword [esp + 0x10]
bswap ecx
mov dword [eax + ebx*4 + 8], ecx
test esi, esi
je 0x41d936
test byte [edi + 0x16], 4
jne 0x41d936
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx + 0x14]
cmp byte [edx + 0xc], 0
jne 0x41d936
movzx eax, word [ecx + 0x1c]
test al, 2
je 0x41d936
cmp dword [edx + 0x60], 0
jne 0x41d936
and eax, 0xfffb
or eax, 0x10
mov word [ecx + 0x1c], ax
mov eax, dword [edi + 0x3c]
xor ebx, ebx
test eax, eax
jne 0x41d97b
mov eax, dword [edi + 0x2c]
push ebx
push 0x200
mov dword [esp + 0x20], eax
call fcn.00404e70
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41d99b
push 0x1fc
lea ecx, [eax + 4]
push ebx
push ecx
call fcn.004e8ed0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [edi + 0x3c], eax
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax]
ja 0x41d98e
mov edx, ecx
mov ecx, eax
call fcn.0040cf10
mov ebx, eax
mov edx, dword [esp + 0x14]
mov dword [esp + 0x14], edx
jmp 0x41da69
mov edx, dword [esp + 0x14]
mov ebx, 7
mov dword [edi + 0x3c], eax
mov dword [esp + 0x14], edx
jmp 0x41da69
test esi, esi
jne 0x41d9f8
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push esi
push ecx
push dword [esp + 0x18]
push eax
mov eax, dword [eax + 0xc8]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x41dabf
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, dword [edx + 8]
cmp ecx, dword [esi + 4]
je 0x41d9f8
mov eax, dword [edx + 4]
mov dword [esi + 0x38], eax
mov dword [esi + 0x48], edx
mov dword [esi + 0x34], edi
mov dword [esi + 4], ecx
mov byte [esi + 9], bl
mov ecx, dword [esi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x41da1d
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x41da1d
cmp dword [edx + 0x60], 0
je 0x41da19
call fcn.004118e0
jmp 0x41da3e
xor ebx, ebx
jmp 0x41da44
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x41da69
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x41da39
call fcn.00413410
jmp 0x41da3e
call fcn.00413340
mov ebx, eax
test ebx, ebx
jne 0x41da69
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x1c]
bswap ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0x10]
bswap ecx
mov dword [eax + 4], 0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
mov dword [eax + 0x20], ecx
test esi, esi
je 0x41dabf
mov edx, dword [esi + 0x48]
mov byte [esi], 0
test byte [edx + 0x1c], 0x20
je 0x41dab8
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x41dabf
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41db28
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x41db21
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004e59d0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040d5a0
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret