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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4263d0]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x9c]
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x34], ebp
xor ecx, ecx
mov word [esp + eax + 0x58], cx
add eax, 2
cmp eax, 0x1e
jbe 0x41aab6
mov ebx, dword [esp + 0xa8]
test ebx, ebx
je 0x41aade
movzx eax, word [esi + ecx*2]
inc ecx
inc word [esp + eax*2 + 0x58]
cmp ecx, ebx
jb 0x41aad0
mov ecx, dword [edi]
lea eax, [esp + 0x72]
mov edi, 0xf
nop dword [eax]
cmp word [eax + 4], 0
jne 0x41ab2f
cmp word [eax + 2], 0
jne 0x41ab2e
cmp word [eax], 0
jne 0x41ab29
cmp word [eax - 2], 0
jne 0x41ab24
cmp word [eax - 4], 0
jne 0x41ab1f
sub edi, 5
sub eax, 0xa
cmp edi, 1
jae 0x41aaf0
jmp 0x41ab2f
sub edi, 4
jmp 0x41ab2f
sub edi, 3
jmp 0x41ab2f
sub edi, 2
jmp 0x41ab2f
dec edi
cmp ecx, edi
mov eax, edi
cmovbe eax, ecx
test edi, edi
jne 0x41ab65
mov ecx, dword [edx]
mov dword [esp + 0x10], 0x140
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
add dword [edx], 4
mov ecx, dword [edx]
mov dword [ecx], eax
mov ecx, dword [esp + 0x48]
add dword [edx], 4
xor eax, eax
mov dword [ecx], 1
jmp 0x41aec4
mov edx, 1
mov dword [esp + 0x14], edx
cmp edi, edx
jbe 0x41ab83
cmp word [esp + edx*2 + 0x58], 0
jne 0x41ab7f
inc edx
cmp edx, edi
jb 0x41ab72
mov dword [esp + 0x14], edx
cmp eax, edx
mov ecx, edx
mov esi, 1
cmovae ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, esi
movzx eax, word [esp + ecx*2 + 0x58]
add esi, esi
sub esi, eax
js 0x41aec1
inc ecx
cmp ecx, 0xf
jbe 0x41ab95
test esi, esi
mov esi, dword [esp + 0xa0]
jle 0x41abc6
test esi, esi
je 0x41aec1
cmp edi, 1
jne 0x41aec1
xor eax, eax
mov ecx, 2
mov word [esp + 0x7a], ax
nop dword [eax]
nop word [eax + eax]
mov ax, word [esp + ecx + 0x58]
add ax, word [esp + ecx + 0x78]
mov word [esp + ecx + 0x7a], ax
add ecx, 2
cmp ecx, 0x1e
jb 0x41abe0
xor ecx, ecx
test ebx, ebx
je 0x41ac26
mov edx, dword [esp + 0x40]
movzx eax, word [edx + ecx*2]
test ax, ax
je 0x41ac1d
movzx eax, word [esp + eax*2 + 0x78]
mov word [ebp + eax*2], cx
movzx eax, word [edx + ecx*2]
inc word [esp + eax*2 + 0x78]
inc ecx
cmp ecx, ebx
jb 0x41ac01
mov edx, dword [esp + 0x14]
mov eax, esi
sub eax, 0
je 0x41ac66
sub eax, 1
je 0x41ac4c
mov dword [esp + 0x30], 0x421710
mov dword [esp + 0x2c], 0x421750
mov dword [esp + 0x20], 0
jmp 0x41ac76
mov dword [esp + 0x30], 0x421690
mov dword [esp + 0x2c], 0x4216d0
mov dword [esp + 0x20], 0x101
jmp 0x41ac76
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], 0x14
mov ecx, dword [esp + 0x3c]
mov ebx, 1
xor ebp, ebp
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x18], ebp
mov eax, dword [ecx]
mov ecx, dword [esp + 0x28]
shl ebx, cl
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], eax
lea ecx, [eax - 1]
mov dword [esp + 0x4c], ecx
cmp esi, 1
jne 0x41acb6
cmp eax, 0x354
jmp 0x41acc0
cmp esi, 2
jne 0x41acc6
cmp eax, 0x250
ja 0x41aeba
mov al, dl
sub al, byte [esp + 0x18]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x34]
movzx esi, word [eax]
mov ecx, esi
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x20]
jae 0x41acee
mov byte [esp + 0x10], 0
mov word [esp + 0x12], si
jmp 0x41ad19
mov eax, dword [esp + 0x20]
cmp ecx, eax
jb 0x41ad0d
sub ecx, eax
mov eax, dword [esp + 0x2c]
mov al, byte [eax + ecx*2]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x30]
mov ax, word [eax + ecx*2]
jmp 0x41ad14
mov byte [esp + 0x10], 0x60
xor eax, eax
mov word [esp + 0x12], ax
mov ecx, edx
mov esi, 1
sub ecx, dword [esp + 0x18]
mov edx, ebx
shl esi, cl
mov eax, ebp
mov ecx, dword [esp + 0x18]
shr eax, cl
mov ecx, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x50], edx
lea ebx, [esi*4]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x10]
sub ecx, ebx
mov dword [ecx], eax
sub edx, esi
jne 0x41ad48
mov ecx, dword [esp + 0x14]
mov edx, 1
dec ecx
shl edx, cl
test ebp, edx
je 0x41ad66
shr edx, 1
test ebp, edx
jne 0x41ad60
test edx, edx
je 0x41ad73
lea eax, [edx - 1]
and ebp, eax
add ebp, edx
jmp 0x41ad75
xor ebp, ebp
mov edx, dword [esp + 0x14]
mov ecx, 0xffff
mov eax, dword [esp + 0x34]
add eax, 2
mov dword [esp + 0x34], eax
add word [esp + edx*2 + 0x58], cx
jne 0x41ada7
cmp edx, edi
je 0x41ae84
movzx eax, word [eax]
mov ecx, dword [esp + 0x40]
movzx edx, word [ecx + eax*2]
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
cmp edx, ecx
jbe 0x41acc6
mov esi, dword [esp + 0x4c]
and esi, ebp
mov dword [esp + 0x54], esi
cmp esi, dword [esp + 0x44]
je 0x41acc6
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, dword [esp + 0x1c]
cmove eax, ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x18], eax
lea ebx, [ebx + ecx*4]
mov dword [esp + 0x1c], ebx
mov ebx, edx
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp edx, edi
jae 0x41ae1c
mov esi, edx
lea edx, [esp + edx*2 + 0x58]
nop
movzx ecx, word [edx]
sub eax, ecx
test eax, eax
jle 0x41ae14
inc esi
inc ebx
add edx, 2
add eax, eax
cmp esi, edi
jb 0x41ae00
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x54]
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x38], ecx
cmp eax, 1
jne 0x41ae47
cmp ecx, 0x354
jmp 0x41ae52
cmp eax, 2
jne 0x41ae54
cmp ecx, 0x250
ja 0x41aeba
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x44], esi
mov eax, dword [ecx]
mov byte [eax + esi*4], bl
mov eax, dword [ecx]
mov ebx, dword [esp + 0x28]
mov byte [eax + esi*4 + 1], bl
mov ecx, dword [ecx]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
sub eax, ecx
sar eax, 2
mov word [ecx + esi*4 + 2], ax
jmp 0x41acc6
test ebp, ebp
je 0x41ae9f
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov byte [esp + 0x10], 0x40
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x10]
mov dword [ecx + ebp*4], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
shl eax, 2
add dword [ecx], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
xor eax, eax
jmp 0x41aec4
mov eax, 1
jmp 0x41aec4
or eax, 0xffffffff
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041b330
add esp, 0x8c
ret