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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x58213c]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa4]
push ebp
push esi
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], ebx
xor ecx, ecx
mov word [esp + eax + 0x58], cx
add eax, 2
cmp eax, 0x1e
jbe 0x41d886
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x41d8ae
movzx eax, word [edx + ecx*2]
inc ecx
inc word [esp + eax*2 + 0x58]
cmp ecx, esi
jb 0x41d8a0
mov ecx, dword [ebx]
lea eax, [esp + 0x72]
mov ebp, 0xf
nop dword [eax]
cmp word [eax + 4], 0
jne 0x41d8ff
cmp word [eax + 2], 0
jne 0x41d8fe
cmp word [eax], 0
jne 0x41d8f9
cmp word [eax - 2], 0
jne 0x41d8f4
cmp word [eax - 4], 0
jne 0x41d8ef
sub ebp, 5
sub eax, 0xa
cmp ebp, 1
jae 0x41d8c0
jmp 0x41d8ff
sub ebp, 4
jmp 0x41d8ff
sub ebp, 3
jmp 0x41d8ff
sub ebp, 2
jmp 0x41d8ff
dec ebp
cmp ecx, ebp
mov eax, ebp
cmovbe eax, ecx
test ebp, ebp
jne 0x41d931
mov ecx, dword [edi]
mov dword [esp + 0x10], 0x140
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
add dword [edi], 4
mov ecx, dword [edi]
mov dword [ecx], eax
add dword [edi], 4
xor eax, eax
mov dword [ebx], 1
jmp 0x41dd66
mov ebx, 1
mov dword [esp + 0x14], ebx
nop word [eax + eax]
cmp word [esp + ebx*2 + 0x58], 0
jne 0x41d98a
cmp word [esp + ebx*2 + 0x5a], 0
jne 0x41d985
cmp word [esp + ebx*2 + 0x5c], 0
jne 0x41d980
cmp word [esp + ebx*2 + 0x5e], 0
jne 0x41d97b
cmp word [esp + ebx*2 + 0x60], 0
jne 0x41d976
add ebx, 5
mov dword [esp + 0x14], ebx
cmp ebx, 0xf
jbe 0x41d940
jmp 0x41d98a
add ebx, 4
jmp 0x41d986
add ebx, 3
jmp 0x41d986
add ebx, 2
jmp 0x41d986
inc ebx
mov dword [esp + 0x14], ebx
cmp eax, ebx
mov ecx, ebx
mov edx, 1
cmovae ecx, eax
mov dword [esp + 0x24], ecx
mov ecx, edx
nop dword [eax]
movzx eax, word [esp + ecx*2 + 0x58]
add edx, edx
sub edx, eax
js 0x41dd63
inc ecx
cmp ecx, 0xf
jbe 0x41d9a0
test edx, edx
mov edx, dword [esp + 0xa0]
jle 0x41d9d1
test edx, edx
je 0x41dd63
cmp ebp, 1
jne 0x41dd63
xor eax, eax
mov ecx, 2
mov word [esp + 0x7a], ax
nop dword [eax]
mov ax, word [esp + ecx + 0x78]
add ax, word [esp + ecx + 0x58]
mov word [esp + ecx + 0x7a], ax
add ecx, 2
cmp ecx, 0x1e
jb 0x41d9e0
xor ecx, ecx
test esi, esi
je 0x41da30
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
movzx eax, word [edi + ecx*2]
test ax, ax
je 0x41da20
movzx eax, word [esp + eax*2 + 0x78]
mov word [edx + eax*2], cx
movzx eax, word [edi + ecx*2]
inc word [esp + eax*2 + 0x78]
inc ecx
cmp ecx, esi
jb 0x41da05
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x24]
mov eax, edx
sub eax, 0
je 0x41dadf
sub eax, 1
je 0x41da84
mov edi, dword [edi]
mov eax, 1
shl eax, cl
mov ecx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
or eax, 0xffffffff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], 0x550af0
mov dword [esp + 0x3c], 0x550b30
lea edi, [ecx - 1]
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], eax
cmp edx, 1
jne 0x41db15
jmp 0x41dacd
mov edx, 0x550a6c
mov dword [esp + 0x14], ebx
sub edx, 0x202
mov eax, 0x100
mov dword [esp + 0x38], eax
mov eax, 1
mov dword [esp + 0x40], edx
mov edx, 0x550aac
sub edx, 0x202
shl eax, cl
mov ecx, eax
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], edx
lea eax, [ecx - 1]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
cmp ecx, 0x5b0
jb 0x41db15
mov eax, 1
jmp 0x41dd66
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, 1
shl eax, cl
mov ecx, eax
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 0x13
lea eax, [ecx - 1]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], eax
xor esi, esi
mov dword [esp + 0x44], 0xffffffff
xor edx, edx
mov dword [esp + 0x18], edx
mov al, bl
sub al, dl
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x28]
movzx eax, word [eax]
mov ecx, eax
cmp ecx, dword [esp + 0x38]
jge 0x41db43
mov byte [esp + 0x10], 0
jmp 0x41db61
jle 0x41db5a
mov eax, dword [esp + 0x3c]
mov al, byte [eax + ecx*2]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x40]
mov ax, word [eax + ecx*2]
jmp 0x41db61
mov byte [esp + 0x10], 0x60
xor eax, eax
mov ecx, ebx
mov word [esp + 0x12], ax
sub ecx, edx
mov edi, 1
mov edx, dword [esp + 0x20]
shl edi, cl
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x50], edx
lea eax, [edi*4]
mov dword [esp + 0x48], eax
mov eax, esi
shr eax, cl
mov ecx, dword [esp + 0x1c]
add eax, edx
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x10]
nop dword [eax]
sub ecx, dword [esp + 0x48]
mov dword [ecx], eax
sub edx, edi
jne 0x41dba0
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test esi, edx
je 0x41dbbe
shr edx, 1
test esi, edx
jne 0x41dbb8
test edx, edx
je 0x41dbcb
lea eax, [edx - 1]
and esi, eax
add esi, edx
jmp 0x41dbcd
xor esi, esi
mov eax, dword [esp + 0x28]
mov ecx, 0xffff
add eax, 2
add word [esp + ebx*2 + 0x58], cx
mov dword [esp + 0x28], eax
jne 0x41dbfb
cmp ebx, ebp
je 0x41dcd8
movzx eax, word [eax]
mov ecx, dword [esp + 0x4c]
movzx ebx, word [ecx + eax*2]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
cmp ebx, ecx
jbe 0x41db25
mov eax, dword [esp + 0x30]
and eax, esi
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x44]
je 0x41db25
mov edi, dword [esp + 0x50]
test edx, edx
cmove edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
lea ecx, [ecx + edi*4]
mov dword [esp + 0x1c], ecx
mov ecx, ebx
sub ecx, edx
mov edx, 1
shl edx, cl
mov dword [esp + 0x20], ecx
cmp ebx, ebp
jae 0x41dc7b
lea ecx, [esp + 0x58]
mov edi, ebx
lea ecx, [ecx + ebx*2]
mov ebx, dword [esp + 0x20]
movzx eax, word [ecx]
sub edx, eax
test edx, edx
jle 0x41dc6b
inc edi
inc ebx
add ecx, 2
add edx, edx
cmp edi, ebp
jb 0x41dc57
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov edi, 1
shl edi, cl
add edx, edi
mov dword [esp + 0x20], edi
cmp dword [esp + 0xa0], 1
mov dword [esp + 0x2c], edx
jne 0x41dca6
cmp edx, 0x5b0
jae 0x41dad5
mov edx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x44], edi
mov eax, dword [edx]
mov byte [eax + edi*4], cl
mov eax, dword [edx]
mov ecx, dword [esp + 0x24]
mov byte [eax + edi*4 + 1], cl
mov ecx, dword [edx]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub eax, ecx
sar eax, 2
mov word [ecx + edi*4 + 2], ax
jmp 0x41db25
mov ebp, dword [esp + 0x34]
xor eax, eax
mov byte [esp + 0x10], 0x40
mov word [esp + 0x12], ax
test esi, esi
je 0x41dd47
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41dd17
mov eax, dword [esp + 0x30]
and eax, esi
cmp eax, edi
je 0x41dd17
mov ebx, dword [esp + 0x24]
xor ecx, ecx
mov eax, dword [ebp]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x11], bl
mov eax, dword [esp + 0x10]
mov edx, esi
shr edx, cl
mov ecx, dword [esp + 0x1c]
mov dword [ecx + edx*4], eax
lea ecx, [ebx - 1]
mov eax, 1
shl eax, cl
test esi, eax
je 0x41dd3a
shr eax, 1
test esi, eax
jne 0x41dd34
test eax, eax
je 0x41dd47
lea ecx, [eax - 1]
and esi, ecx
add esi, eax
jne 0x41dcf0
mov ecx, dword [esp + 0x2c]
lea eax, [ecx*4]
mov ecx, dword [esp + 0x54]
add dword [ebp], eax
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
xor eax, eax
jmp 0x41dd66
or eax, 0xffffffff
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511b56
add esp, 0x8c
ret