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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x549944]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
cmp word [edi + 0x16], 0
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
jne 0x41ec6b
push 0x53d0b4
push 0x1043a
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 + 0x40]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, eax
call fcn.0041c9e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x41ee55
mov eax, dword [edi + 0x24]
add esi, 4
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x4c]
push edi
call eax
mov edi, dword [esp + 0x18]
lea edx, [ebx + 0xd]
movzx eax, ax
mov ecx, edi
mov dword [esp + 0x50], eax
call fcn.00418580
lea eax, [esp + 0x50]
mov ecx, edi
push eax
lea eax, [esp + 0x38]
push eax
lea edx, [ebx + 1]
call fcn.0041e680
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x41ee55
mov ecx, dword [esp + 0x24]
mov ax, word [ecx + 0x24]
sub ax, word [edi + 0x12]
sub ax, word [esp + 0x48]
sub ax, 2
mov word [edi + 0x14], ax
cmp byte [ecx + 0x11], bl
je 0x41ed6a
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 4]
push 5
call fcn.00417290
mov eax, dword [esp + 0x54]
add esp, 0xc
mov ebx, dword [esp + 0x10]
cmp ax, word [edi + 0x10]
jbe 0x41ed6a
test ebx, ebx
jne 0x41ed6a
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
mov eax, dword [edi + 0x50]
push edi
call eax
movzx eax, word [esp + 0x4c]
add esp, 0xc
cmp eax, dword [esp + 0x3c]
jae 0x41ed6a
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
mov ecx, dword [edi + 0x34]
push eax
movzx eax, word [esp + 0x46]
push dword [edi + 4]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.00417290
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x1c]
movzx ecx, word [edx + 0x16]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
lea edx, [ecx + 9]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jns 0x41ed9b
cmp ecx, edx
jb 0x41ed90
lea edx, [ecx + 9]
nop
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
test al, al
jns 0x41edae
cmp ecx, edx
jb 0x41eda0
test ebx, ebx
jne 0x41eddf
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 4]
mov eax, dword [esp + 0x30]
sub esi, eax
push ebx
push esi
mov esi, dword [esp + 0x24]
mov ecx, esi
push eax
movzx edx, word [esi + 0x16]
call fcn.0041e390
mov ebx, dword [esp + 0x24]
add esp, 0x14
jmp 0x41ede3
mov esi, dword [esp + 0x14]
movzx ecx, byte [esi + 9]
mov eax, dword [esi + 0x38]
mov edx, dword [esp + 0x20]
bswap edx
mov dword [ecx + eax + 8], edx
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x41ee4e
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 + 0x40]
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret
mov ecx, edx
call fcn.0040d5a0
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e5962
mov esp, ebp
pop ebp
ret