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

Disassembly:
push 0xffffffffffffffff
push 0x5686cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [ebp + 0xc]
push edi
mov eax, dword [ebp + 0x10]
lea esi, [ebp + 8]
mov edi, dword [ebp + 0x38]
xor ebx, ebx
lea eax, [eax + eax*2]
mov dword [esp + 0x20], esi
shl eax, 2
sub ecx, eax
mov eax, dword [ebp + 0x1c]
dec edi
mov dword [esp + 0x18], ecx
test eax, eax
jl 0x40dda4
add ecx, 8
mov dword [esp + 0x10], ecx
cmp dword [ecx], edi
jle 0x40dd91
cmp ebx, dword [esi + 0x10]
jl 0x40dd3c
cmp ebx, dword [esi + 0x14]
jle 0x40dd80
push 0
push 0
push 0x261
push 0x5bade0
push 0x5badc0
lea ecx, [esp + 0x4c]
call fcn.00430560
push eax
mov dword [esp + 0xf4], 0
call fcn.00430640
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0xf0], 0xffffffff
call fcn.004305f0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, ebx
sub eax, ecx
lea ecx, [eax + eax*2]
mov edi, dword [edx + ecx*4 + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x1c]
inc ebx
add ecx, 0xc
cmp ebx, eax
mov dword [esp + 0x10], ecx
jle 0x40dd2e
push edi
push 0
push 0x571b20
lea ecx, [esp + 0x7c]
call fcn.0043e2f0
mov eax, dword [esp + 0x78]
xor esi, esi
mov dword [esp + 0xf0], 1
lea ecx, [eax*4]
mov eax, dword [esp + 0x74]
sub eax, ecx
test edi, edi
mov dword [esp + 0x14], eax
jl 0x40de44
mov bl, 2
cmp esi, dword [esp + 0x80]
jl 0x40ddef
cmp esi, dword [esp + 0x84]
jle 0x40de2c
push 0
push 0
push 0x261
push 0x5bade0
push 0x5badc0
lea ecx, [esp + 0x4c]
call fcn.00430560
push eax
mov byte [esp + 0xf4], bl
call fcn.00430640
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0xf0], 1
call fcn.004305f0
mov eax, dword [esp + 0x78]
mov edx, esi
sub edx, eax
mov eax, dword [esp + 0x74]
inc esi
cmp esi, edi
mov dword [eax + edx*4], 0xffffffff
jle 0x40dddd
mov eax, dword [ebp + 0x1c]
xor ecx, ecx
test eax, eax
jl 0x40de72
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add edx, 8
mov eax, dword [edx]
test eax, eax
jl 0x40de65
mov dword [esi + eax*4], 1
mov eax, dword [ebp + 0x1c]
inc ecx
add edx, 0xc
cmp ecx, eax
jle 0x40de58
jmp 0x40de76
mov esi, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
mov dword [esp + 0x28], ebx
jl 0x40de95
mov eax, esi
inc edi
cmp dword [eax], 0
jle 0x40de8b
mov dword [eax], ebx
inc ebx
add eax, 4
dec edi
jne 0x40de83
mov dword [esp + 0x28], ebx
mov eax, dword [ebp + 0x38]
test eax, eax
jle 0x40deaf
mov eax, dword [ebp + 0x38]
mov ecx, dword [esi + eax*4 - 4]
test ecx, ecx
jge 0x40deaf
dec eax
test eax, eax
mov dword [ebp + 0x38], eax
jg 0x40de9c
mov eax, dword [ebp + 0x38]
test eax, eax
jle 0x40debe
mov eax, dword [esi + eax*4 - 4]
inc eax
mov dword [ebp + 0x38], eax
lea ecx, [ebx - 1]
lea esi, [ebp + 0x20]
push ecx
push 0
mov ecx, esi
mov dword [esp + 0x74], esi
call fcn.0043e420
xor edi, edi
test ebx, ebx
jle 0x40df40
cmp edi, dword [esi + 0x10]
jl 0x40dee2
cmp edi, dword [esi + 0x14]
jle 0x40df20
push 0
push 0
push 0x261
push 0x5bade0
push 0x5badc0
lea ecx, [esp + 0x4c]
call fcn.00430560
push eax
mov byte [esp + 0xf4], 3
call fcn.00430640
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0xf0], 1
call fcn.004305f0
mov edx, dword [esi + 8]
mov eax, edi
sub eax, edx
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esi + 4]
inc edi
cmp edi, ebx
mov dword [eax + edx*4 + 0x14], 0
jl 0x40ded8
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x1c], 0
test eax, eax
jl 0x40dfe8
mov ecx, dword [esp + 0x18]
lea ebx, [ecx + 8]
mov eax, dword [ebx]
test eax, eax
jl 0x40dfd1
mov edx, dword [esp + 0x14]
mov edi, dword [edx + eax*4]
mov eax, dword [esi + 0x10]
cmp edi, eax
jl 0x40df73
cmp edi, dword [esi + 0x14]
jle 0x40dfb1
push 0
push 0
push 0x261
push 0x5bade0
push 0x5badc0
lea ecx, [esp + 0x4c]
call fcn.00430560
push eax
mov byte [esp + 0xf4], 4
call fcn.00430640
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0xf0], 1
call fcn.004305f0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, edi
mov dword [ebx], edi
sub eax, ecx
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*4]
mov ecx, dword [edx + ecx*4 + 0x14]
inc ecx
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x1c]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x1c], eax
jle 0x40df5a
mov eax, dword [esp + 0x28]
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x40e0d2
mov ebx, dword [esp + 0x14]
mov dword [ebx], ebp
mov eax, dword [esi + 0x10]
cmp edi, eax
jl 0x40e00a
cmp edi, dword [esi + 0x14]
jle 0x40e048
push 0
push 0
push 0x261
push 0x5bade0
push 0x5badc0
lea ecx, [esp + 0x4c]
call fcn.00430560
push eax
mov byte [esp + 0xf4], 5
call fcn.00430640
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0xf0], 1
call fcn.004305f0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, edi
sub eax, ecx
lea ecx, [eax*8]
sub ecx, eax
mov dword [edx + ecx*4 + 0x18], ebp
mov eax, dword [esi + 0x10]
cmp edi, eax
jl 0x40e06b
cmp edi, dword [esi + 0x14]
jle 0x40e0a9
push 0
push 0
push 0x261
push 0x5bade0
push 0x5badc0
lea ecx, [esp + 0x68]
call fcn.00430560
push eax
mov byte [esp + 0xf4], 6
call fcn.00430640
add esp, 4
lea ecx, [esp + 0x54]
mov byte [esp + 0xf0], 1
call fcn.004305f0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, edi
add ebx, 4
sub eax, ecx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*4 + 0x14]
add ebp, eax
mov eax, dword [esp + 0x28]
inc edi
cmp edi, eax
jl 0x40dffc
push 0x571b08
lea ecx, [esp + 0x8c]
call fcn.0043e2d0
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x88]
push edi
mov byte [esp + 0xf4], 7
call fcn.0043e380
mov eax, dword [esp + 0x90]
mov ebx, dword [esp + 0x8c]
mov ecx, edi
lea eax, [eax + eax*2]
shl eax, 2
sub ebx, eax
dec ebp
push ebp
push 0
call fcn.0043e420
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
mov dword [esp + 0x1c], 0
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x9c]
shl ecx, 2
sub edi, ecx
test eax, eax
jl 0x40e181
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
test ecx, ecx
jl 0x40e16a
mov eax, dword [edx + ecx*4]
lea ebp, [eax + 1]
lea eax, [eax + eax*2]
mov dword [edx + ecx*4], ebp
lea ecx, [edi + eax*4]
mov eax, ebx
mov ebp, dword [eax]
mov dword [ecx], ebp
mov ebp, dword [eax + 4]
mov dword [ecx + 4], ebp
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x9c]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x1c], eax
jle 0x40e142
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
mov dword [esp + 0x1c], edi
jle 0x40e630
jmp 0x40e19d
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x1c]
cmp edi, dword [esi + 0x10]
jl 0x40e1a7
cmp edi, dword [esi + 0x14]
jle 0x40e1eb
push 0
push 0
push 0x261
push 0x5bade0
push 0x5badc0
lea ecx, [esp + 0xb4]
call fcn.00430560
push eax
mov byte [esp + 0xf4], 8
call fcn.00430640
add esp, 4
lea ecx, [esp + 0xa0]
mov byte [esp + 0xf0], 7
call fcn.004305f0
mov eax, edi
mov edi, dword [esi + 8]
mov edx, dword [esi + 4]
sub eax, edi
mov dword [esp + 0x50], 0
lea ecx, [eax*8]
sub ecx, eax
mov ebx, dword [edx + ecx*4 + 0x18]
lea eax, [edx + ecx*4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov eax, dword [eax + 0x14]
lea esi, [eax + ebx - 1]
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x40e51f
mov edi, dword [esp + 0x20]
cmp esi, dword [edi + 0x14]
jg 0x40e236
cmp ebx, dword [edi + 0x10]
jge 0x40e27a
push 0
push 0
push 0x22e
push 0x5bade0
push 0x5badc0
lea ecx, [esp + 0xcc]
call fcn.00430560
push eax
mov byte [esp + 0xf4], 9
call fcn.00430640
add esp, 4
lea ecx, [esp + 0xb8]
mov byte [esp + 0xf0], 7
call fcn.004305f0
mov eax, dword [edi + 8]
mov ebp, dword [edi + 4]
lea edx, [ebx + 0x32]
lea ecx, [eax + eax*2]
shl ecx, 2
sub ebp, ecx
cmp esi, edx
jg 0x40e344
lea edx, [ebx + 1]
cmp edx, esi
mov dword [esp + 0x10], edx
jg 0x40e51f
lea eax, [edx + edx*2]
lea ecx, [ebp + eax*4]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
mov edi, dword [eax]
mov dword [esp + 0x38], edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
lea eax, [edx - 1]
cmp eax, ebx
jl 0x40e30f
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff4
mov esi, dword [ecx]
cmp esi, edi
jl 0x40e30b
jne 0x40e2e6
mov si, word [ecx + 4]
cmp si, word [esp + 0x3c]
jle 0x40e30b
mov esi, ecx
lea edx, [ecx + 0xc]
dec eax
sub ecx, 0xc
mov edi, dword [esi]
cmp eax, ebx
mov dword [edx], edi
mov edi, dword [esi + 4]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x38]
mov esi, dword [esi + 8]
mov dword [edx + 8], esi
mov edx, dword [esp + 0x10]
jge 0x40e2d3
mov esi, dword [esp + 0x14]
lea eax, [eax + eax*2 + 3]
inc edx
mov dword [esp + 0x10], edx
lea ecx, [ebp + eax*4]
mov eax, dword [esp + 0x3c]
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x18]
add ecx, 0xc
cmp edx, esi
mov dword [esp + 0x18], ecx
jle 0x40e2ad
jmp 0x40e51f
lea ecx, [ebx + ebx*2]
lea edi, [ebp + ecx*4]
mov edx, edi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x58], eax
lea eax, [ebx + esi]
mov edx, dword [edx + 8]
mov dword [esp + 0x5c], edx
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + eax*2]
lea eax, [ebp + eax*4]
mov dword [esp + 0x10], eax
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
cmp eax, ecx
jl 0x40e395
jne 0x40e3bd
cmp dx, word [esp + 0x58]
jg 0x40e3bd
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x58], edx
mov edx, dword [edi]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], edx
mov eax, dword [edi + 4]
mov dword [esp + 0x30], eax
mov edx, dword [edi + 8]
mov dword [esp + 0x34], edx
lea eax, [esi + esi*2]
lea esi, [ebp + eax*4]
mov eax, dword [ebp + eax*4]
cmp eax, ecx
jl 0x40e3d9
jne 0x40e3ef
mov dx, word [esi + 4]
cmp dx, word [esp + 0x58]
jg 0x40e3ef
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jmp 0x40e415
lea edx, [esp + 0x2c]
push edx
push esi
call fcn.0040e680
add esp, 8
test al, al
je 0x40e415
mov eax, dword [esi]
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x30], ecx
mov edx, dword [esi + 8]
mov dword [esp + 0x34], edx
mov edi, dword [esp + 0x14]
mov esi, ebx
cmp ebx, edi
jge 0x40e505
lea eax, [esi + esi*2]
lea ecx, [esp + 0x2c]
lea eax, [ebp + eax*4]
push eax
push ecx
mov dword [esp + 0x18], eax
call fcn.0040e680
add esp, 8
test al, al
jne 0x40e466
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
inc esi
add eax, 0xc
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040e680
add esp, 8
test al, al
je 0x40e448
lea ecx, [edi + edi*2]
lea edx, [esp + 0x2c]
push edx
lea eax, [ebp + ecx*4]
push eax
mov dword [esp + 0x18], eax
call fcn.0040e680
add esp, 8
test al, al
jne 0x40e4a9
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
sub eax, 0xc
push ecx
push eax
dec edi
mov dword [esp + 0x18], eax
call fcn.0040e680
add esp, 8
test al, al
je 0x40e48b
cmp esi, edi
jge 0x40e505
lea edx, [esi + esi*2]
inc esi
lea eax, [ebp + edx*4]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x58], edx
lea edx, [edi + edi*2]
mov ecx, dword [ecx + 8]
dec edi
mov dword [esp + 0x5c], ecx
lea ecx, [ebp + edx*4]
mov edx, ecx
cmp esi, edi
mov ebx, dword [edx]
mov dword [eax], ebx
mov ebx, dword [edx + 4]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [ecx], eax
mov eax, dword [esp + 0x5c]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
jl 0x40e423
push edi
mov edi, dword [esp + 0x24]
push ebx
mov ecx, edi
call fcn.0040fa50
mov ecx, dword [esp + 0x14]
push ecx
push esi
mov ecx, edi
call fcn.0040fa50
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov esi, dword [edi + 0x18]
mov ecx, dword [eax + 0x10]
cmp esi, ecx
jl 0x40e536
cmp esi, dword [eax + 0x14]
jle 0x40e582
push 0
push 0
push 0x261
push 0x5bade0
push 0x5badc0
lea ecx, [esp + 0xe4]
call fcn.00430560
push eax
mov byte [esp + 0xf4], 0xa
call fcn.00430640
add esp, 4
lea ecx, [esp + 0xd0]
mov byte [esp + 0xf0], 7
call fcn.004305f0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 4]
sub esi, ebx
lea edx, [esi + esi*2]
mov esi, dword [eax + edx*4]
mov dword [esp + 0x14], esi
movsx ecx, word [eax + edx*4 + 4]
lea eax, [eax + edx*4]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x14]
movsx edx, word [eax + 6]
test ecx, ecx
mov dword [esp + 0x18], edx
jle 0x40e5fb
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x24], ecx
movsx ebx, word [eax + 4]
cmp ebx, dword [esp + 0x10]
jge 0x40e5c5
mov dword [esp + 0x10], ebx
movsx ecx, word [eax + 6]
cmp ecx, dword [esp + 0x18]
jle 0x40e5d3
mov dword [esp + 0x18], ecx
mov edx, dword [eax]
cmp edx, esi
jge 0x40e5db
mov esi, edx
cmp edx, dword [esp + 0x14]
jle 0x40e5e5
mov dword [esp + 0x14], edx
sub ecx, ebx
add eax, 0xc
lea ebp, [ecx + ebp + 1]
mov ecx, dword [esp + 0x24]
dec ecx
mov dword [esp + 0x24], ecx
jne 0x40e5b7
jmp 0x40e5ff
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x28]
inc edx
inc eax
cmp eax, ecx
mov dword [edi + 0x10], ebp
mov dword [edi + 4], esi
mov dword [edi + 0xc], edx
mov dword [esp + 0x1c], eax
jl 0x40e195
lea ecx, [esp + 0x88]
mov byte [esp + 0xf0], 1
call fcn.0043e330
lea ecx, [esp + 0x70]
mov dword [esp + 0xf0], 0xffffffff
call fcn.0043e330
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe4
ret