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

Disassembly:
sub esp, 0x70
mov eax, dword [0x536f50]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov dword [esp + 0x1c], eax
xor eax, eax
push edi
mov ebx, ecx
lea esi, [esp + 0x4c]
mov edi, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], eax
call fcn.00415550
xor edi, edi
cmp eax, edi
jne 0x41608e
mov eax, dword [esp + 0x50]
cmp eax, edi
ja 0x415b53
mov esi, dword [esp + 0x4c]
cmp esi, 0x80000000
jae 0x415b53
cmp eax, edi
ja 0x415b53
cmp esi, 0x4000000
jb 0x415b6b
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0047a885
add esp, 0x70
ret
cmp esi, 0x20
ja 0x415b53
mov dword [ebx + 0x10], esi
cmp esi, edi
jne 0x415ce8
mov dword [ebx], edi
cmp esi, edi
jbe 0x415b98
xor ecx, ecx
mov edx, esi
mov eax, dword [ebx]
lea eax, [ecx + eax + 0x10]
add ecx, 0x18
sub edx, 1
mov dword [eax], edi
mov dword [eax + 4], edi
jne 0x415b85
mov dword [esp + 0x18], edi
cmp esi, edi
jbe 0x415b53
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
add ebx, dword [esp + 0x34]
mov esi, dword [ebp + 4]
mov dword [esp + 0x2c], ebx
test esi, esi
je 0x415f0b
mov eax, dword [ebp]
dec esi
mov dword [ebp + 4], esi
mov dl, byte [eax]
lea ecx, [eax + 1]
movzx eax, dl
and eax, 0xf
mov byte [esp + 0x13], dl
mov dword [ebp], ecx
mov edi, 0
jbe 0x415bfb
lea ecx, [ecx]
test esi, esi
je 0x415f0b
dec esi
mov dword [ebp + 4], esi
mov dl, byte [ecx]
mov byte [esp + edi + 0x6c], dl
inc ecx
inc edi
mov dword [ebp], ecx
cmp edi, eax
jb 0x415be0
cmp eax, 8
ja 0x415b53
xor ecx, ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
cmp eax, ecx
jbe 0x415c3c
xor edi, edi
lea esi, [esp + eax + 0x6b]
mov dword [esp + 0x38], eax
lea ebx, [ebx]
movzx eax, byte [esi]
cdq
mov ecx, edi
call fcn.0047aaa0
or dword [ebx + 8], eax
or dword [ebx + 0xc], edx
dec esi
add edi, 8
sub dword [esp + 0x38], 1
jne 0x415c20
test byte [esp + 0x13], 0x10
je 0x415d20
lea esi, [esp + 0x5c]
mov edi, ebp
call fcn.00415550
test eax, eax
jne 0x41608e
mov ecx, dword [esp + 0x60]
test ecx, ecx
ja 0x415b53
mov eax, dword [esp + 0x5c]
jb 0x415c77
cmp eax, 0x80000000
jae 0x415b53
test ecx, ecx
ja 0x415b53
jb 0x415c8c
cmp eax, 0x4000000
jae 0x415b53
lea esi, [esp + 0x64]
mov dword [ebx], eax
call fcn.00415550
test eax, eax
jne 0x41608e
mov ecx, dword [esp + 0x68]
test ecx, ecx
ja 0x415b53
mov eax, dword [esp + 0x64]
jb 0x415cbc
cmp eax, 0x80000000
jae 0x415b53
test ecx, ecx
ja 0x415b53
jb 0x415cd1
cmp eax, 0x4000000
jae 0x415b53
cmp dword [ebx], 0x20
mov dword [ebx + 4], eax
ja 0x415b53
cmp eax, 0x20
ja 0x415b53
jmp 0x415d2d
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea ecx, [esi + esi*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push eax
call edx
add esp, 8
mov dword [ebx], eax
cmp eax, edi
jne 0x415b7d
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0047a885
add esp, 0x70
ret
mov dword [ebx], 1
mov dword [ebx + 4], 1
test byte [esp + 0x13], 0x20
je 0x415d8c
xor eax, eax
lea esi, [esp + 0x54]
mov edi, ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.00415550
test eax, eax
jne 0x41608e
mov esi, dword [esp + 0x54]
xor edi, edi
mov dword [ebx + 0x14], edi
cmp esi, edi
jne 0x415d63
mov dword [ebx + 0x10], edi
jmp 0x415d7a
mov eax, dword [esp + 0x20]
push esi
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [ebx + 0x10], eax
cmp eax, edi
je 0x415d08
mov dword [ebx + 0x14], esi
mov edi, dword [ebx + 0x10]
mov eax, ebp
call fcn.004154e0
test eax, eax
jne 0x41608e
test byte [esp + 0x13], 0x80
je 0x415ec1
jmp 0x415da0
mov eax, dword [ebp + 4]
test eax, eax
je 0x415f0b
lea ecx, [eax - 1]
mov eax, dword [ebp]
mov dword [ebp + 4], ecx
mov bl, byte [eax]
mov dl, bl
and dl, 0xf
lea esi, [eax + 1]
movzx eax, dl
cdq
xor edi, edi
mov dword [ebp], esi
cmp edx, edi
ja 0x415f0b
jb 0x415dd9
cmp eax, ecx
ja 0x415f0b
sub ecx, eax
add esi, eax
mov dword [ebp + 4], ecx
mov dword [ebp], esi
test bl, 0x10
je 0x415e74
lea esi, [esp + 0x3c]
mov edi, ebp
call fcn.00415550
test eax, eax
jne 0x41608e
mov ecx, dword [esp + 0x40]
test ecx, ecx
ja 0x415b53
mov eax, dword [esp + 0x3c]
jb 0x415e1c
cmp eax, 0x80000000
jae 0x415b53
test ecx, ecx
ja 0x415b53
jb 0x415e31
cmp eax, 0x4000000
jae 0x415b53
lea esi, [esp + 0x24]
call fcn.00415550
test eax, eax
jne 0x41608e
mov ecx, dword [esp + 0x28]
test ecx, ecx
ja 0x415b53
mov eax, dword [esp + 0x24]
jb 0x415e5f
cmp eax, 0x80000000
jae 0x415b53
test ecx, ecx
ja 0x415b53
jb 0x415e74
cmp eax, 0x4000000
jae 0x415b53
test bl, 0x20
je 0x415eb5
xor eax, eax
lea esi, [esp + 0x44]
mov edi, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.00415550
test eax, eax
jne 0x41608e
mov edx, dword [esp + 0x48]
mov eax, dword [ebp + 4]
xor ecx, ecx
cmp edx, ecx
ja 0x415f0b
mov ecx, dword [esp + 0x44]
jb 0x415ead
cmp ecx, eax
ja 0x415f0b
sub eax, ecx
add dword [ebp], ecx
mov dword [ebp + 4], eax
test bl, bl
js 0x415da0
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, dword [ebx + 4]
add dword [esp + 0x34], 0x18
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x4c]
jb 0x415ba4
xor ebx, ebx
cmp eax, ebx
je 0x415b53
mov edi, dword [esp + 0x1c]
lea esi, [eax - 1]
mov dword [esp + 0x14], esi
mov dword [edi + 0x14], esi
cmp esi, ebx
jne 0x415f23
mov dword [edi + 4], ebx
jmp 0x415f42
pop edi
pop esi
pop ebp
mov eax, 0x10
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0047a885
add esp, 0x70
ret
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
lea ecx, [esi*8]
push ecx
push eax
call edx
add esp, 8
mov dword [edi + 4], eax
cmp eax, ebx
je 0x415d08
mov dword [esp + 0x18], ebx
cmp esi, ebx
jbe 0x415ffe
mov edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x18]
lea esi, [esp + 0x24]
mov edi, ebp
lea ebx, [ecx + edx*8]
call fcn.00415550
test eax, eax
jne 0x41608e
mov ecx, dword [esp + 0x28]
test ecx, ecx
ja 0x415b53
mov eax, dword [esp + 0x24]
jb 0x415f8e
cmp eax, 0x80000000
jae 0x415b53
test ecx, ecx
ja 0x415b53
jb 0x415fa3
cmp eax, 0x4000000
jae 0x415b53
lea esi, [esp + 0x3c]
mov dword [ebx], eax
call fcn.00415550
test eax, eax
jne 0x41608e
mov ecx, dword [esp + 0x40]
test ecx, ecx
ja 0x415b53
mov eax, dword [esp + 0x3c]
jb 0x415fd3
cmp eax, 0x80000000
jae 0x415b53
test ecx, ecx
ja 0x415b53
jb 0x415fe8
cmp eax, 0x4000000
jae 0x415b53
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x415f50
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp ebx, eax
jb 0x415b53
mov edi, dword [esp + 0x1c]
mov esi, ebx
sub esi, eax
mov dword [esp + 0x14], esi
mov dword [edi + 0x18], esi
jne 0x4160a1
mov dword [edi + 8], 0
xor ebx, ebx
test esi, esi
jbe 0x41608c
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
lea ecx, [eax + ebx*4]
lea esi, [esp + 0x24]
mov edi, ebp
mov dword [esp + 0x2c], ecx
call fcn.00415550
test eax, eax
jne 0x41608e
mov ecx, dword [esp + 0x28]
test ecx, ecx
ja 0x415b53
mov eax, dword [esp + 0x24]
jb 0x41606a
cmp eax, 0x80000000
jae 0x415b53
test ecx, ecx
ja 0x415b53
jb 0x41607f
cmp eax, 0x4000000
jae 0x415b53
mov edx, dword [esp + 0x2c]
inc ebx
mov dword [edx], eax
cmp ebx, dword [esp + 0x14]
jb 0x416030
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0047a885
add esp, 0x70
ret
lea eax, [esi*4]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push eax
call ecx
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x415d08
cmp esi, 1
jne 0x41602a
xor esi, esi
test ebx, ebx
jbe 0x4160f7
mov ebp, dword [edi + 0x14]
xor ecx, ecx
test ebp, ebp
jbe 0x4160f7
mov edx, dword [edi + 4]
jmp 0x4160e0
cmp dword [edx], esi
je 0x4160ee
inc ecx
add edx, 8
cmp ecx, ebp
jb 0x4160e0
jmp 0x4160f7
test ecx, ecx
jl 0x4160f7
inc esi
cmp esi, ebx
jb 0x4160d2
cmp esi, ebx
je 0x415b53
mov ecx, dword [esp + 0x7c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0047a885
add esp, 0x70
ret