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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [esp + 0x10], eax
push esi
push edi
mov esi, edx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 0x74]
xor edi, edi
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x28], eax
call fcn.0041b4b0
mov eax, dword [ebx + 0x20]
mov ecx, eax
movzx edx, word [ebx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
sub ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
sub eax, edx
cmp ecx, eax
jbe 0x41b80f
push 0x53d0b4
push 0xfb0d
push 0x53d048
push 0x53d02c
push 0xb
call fcn.00407720
add esp, 0x14
lea eax, [edi + 0xb]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp esi, edx
jae 0x41b875
mov ecx, eax
mov dword [esp + 0x14], eax
add eax, esi
cmp eax, edx
jbe 0x41b82a
mov ecx, edx
sub ecx, esi
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
push dword [eax + 0x48]
push dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea ecx, [esi + ecx]
call fcn.0041b700
mov ecx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [esp + 0x18], ecx
sub eax, ecx
xor esi, esi
mov dword [esp + 0x24], eax
test edi, edi
je 0x41b87b
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
sub esi, edx
mov dword [esp + 0x24], eax
test eax, eax
je 0x41b861
mov eax, dword [esp + 0x28]
movzx ecx, word [ebx + 0x28]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x24]
mov eax, dword [esp + 0x10]
add edx, 0xfffffffc
mov dword [esp + 0x20], edx
mov ebx, dword [ecx + eax]
mov ecx, dword [esp + 0x1c]
bswap ebx
mov dword [esp + 0x10], ebx
test byte [ecx + 1], 4
jne 0x41b943
mov eax, dword [ecx + 0x24]
dec edx
sub eax, dword [esp + 0x30]
add eax, edx
xor edx, edx
div dword [esp + 0x20]
mov dword [esp + 0xc], eax
cmp eax, dword [ecx + 4]
jle 0x41b911
lea ecx, [eax*8]
push 0
push ecx
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x14]
call fcn.00405180
mov edx, eax
add esp, 8
test edx, edx
jne 0x41b8fd
lea eax, [edx + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add eax, eax
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x14], edx
shl eax, 2
push eax
push 0
push dword [ecx + 0x14]
call fcn.004e8ed0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, ebx
or byte [edx + 1], 4
xor eax, eax
test ecx, ecx
je 0x41bae0
lea ecx, [eax*4]
mov dword [esp + 0xc], ecx
jmp 0x41b984
xor edx, edx
mov eax, esi
div dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, ecx
mov ecx, dword [edx + 0x14]
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0xc], ecx
mov ecx, ebx
cmp dword [esp + 0xc], 0
je 0x41b92c
mov ebx, dword [esp + 0xc]
lea ecx, [eax*4]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
jmp 0x41b984
mov ecx, dword [esp + 0xc]
mov eax, dword [edx + 0x14]
mov dword [ecx + eax], ebx
cmp esi, dword [esp + 0x20]
jb 0x41b9d6
mov eax, dword [edx + 0x14]
mov eax, dword [ecx + eax + 4]
test eax, eax
je 0x41b9ae
sub esi, dword [esp + 0x20]
mov ebx, eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
jmp 0x41babf
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push 0
mov edx, ebx
call fcn.0041b520
mov ebx, dword [esp + 0x18]
add esp, 8
sub esi, dword [esp + 0x20]
mov edi, eax
mov ecx, dword [esp + 0x24]
jmp 0x41babf
mov ecx, dword [esp + 0x24]
mov edx, 2
mov edi, dword [esp + 0x20]
sub edi, esi
lea eax, [esi + ecx]
cmp eax, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
cmovbe edi, ecx
mov dword [esp + 0x2c], edi
mov ecx, dword [eax]
xor eax, eax
cmp dword [ebp + 0x10], eax
cmove eax, edx
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [ecx + 0xc8]
push ebx
push ecx
call eax
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41baa7
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push eax
push dword [ebp + 0x10]
mov ecx, dword [eax + 4]
push edi
mov ebx, dword [ecx]
add ecx, 4
bswap ebx
add ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.0041b700
mov edx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x14], eax
test edx, edx
je 0x41baa5
test byte [edx + 0x1c], 0x20
je 0x41ba9a
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
mov edi, dword [esp + 0x3c]
add esp, 0x10
jmp 0x41baa1
mov ecx, edx
call fcn.0040d5a0
mov eax, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [esp + 0x24]
sub ecx, edi
mov dword [esp + 0x24], ecx
je 0x41b863
add dword [esp + 0x18], edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x41b861
add dword [esp + 0xc], 4
mov edx, dword [esp + 0x1c]
test ebx, ebx
jne 0x41b980
test ecx, ecx
je 0x41b861
push 0x53d0b4
push 0xfba1
push 0x53d048
push 0x53d02c
push 0xb
call fcn.00407720
mov ecx, dword [esp + 0x48]
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret