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

Disassembly:
mov eax, 0x5806c
call fcn.0045c960
mov eax, dword [0x48eb38]
push ebx
push ebp
push esi
mov esi, dword [0x47937c]
push edi
mov dword [esp + 0x58078], eax
call esi
call esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58170]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58180]
mov ebx, 1
cmp eax, ebx
mov dword [esp + 0x2c], 0
jne 0x40b3c6
mov edx, dword [esp + 0x58144]
mov eax, dword [esp + 0x58148]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x5815c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x58160]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
sub esp, 0xc4
mov ecx, 0x31
mov esi, 0x13b7e70
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00409990
add esp, 0xd4
mov ecx, dword [esp + 0x58174]
cmp byte [ecx], 0
jne 0x40b3eb
mov eax, ebx
mov ecx, dword [esp + 0x58078]
call fcn.0045c945
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5806c
ret
cmp dword [0xd0d100], ebx
jne 0x40b405
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x24], 0x40
jmp 0x40b412
mov eax, 0xff
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], eax
movzx eax, byte [esp + 0x58166]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40b426
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x58164]
movzx ebp, ah
test ebp, ebp
jne 0x40b436
mov ebp, ebx
and eax, 0xff
mov dword [esp + 0x18], eax
jne 0x40b445
mov dword [esp + 0x18], ebx
movzx ebx, byte [esp + 0x5816a]
test ebx, ebx
jne 0x40b456
mov ebx, 1
mov eax, dword [esp + 0x58168]
movzx esi, ah
test esi, esi
jne 0x40b469
mov esi, 1
and eax, 0xff
mov edi, eax
jne 0x40b477
mov edi, 1
lea edx, [esp + 0x34]
push 0xffffffffffffffff
push edx
call fcn.0044c300
lea eax, [esp + 0x3c]
push eax
call fcn.0044c440
push ebx
push esi
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.00447ca0
mov edx, dword [esp + 0x30]
mov si, word [eax]
mov bl, byte [eax + 2]
mov eax, dword [esp + 0x34]
push edx
push ebp
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00447ca0
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x581a8]
add esp, 0x2c
push edx
push ecx
lea edx, [esp + 0x10080]
push edx
lea ecx, [esp + 0x40084]
push ecx
lea edx, [esp + 0x4088]
push edx
lea ecx, [esp + 0x1c08c]
push ecx
lea edx, [esp + 0x30090]
push edx
lea ecx, [esp + 0x18094]
push ecx
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0xc09c]
push ecx
lea edx, [esp + 0x340a0]
push edx
mov edx, dword [esp + 0x581a0]
lea ecx, [esp + 0x3e0a4]
push ecx
push edx
push ecx
mov ecx, esp
mov word [ecx], si
push ecx
mov byte [ecx + 2], bl
mov cx, word [eax]
mov al, byte [eax + 2]
mov edx, esp
mov word [edx], cx
mov byte [edx + 2], al
mov edx, dword [esp + 0x58190]
mov eax, dword [esp + 0x58194]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x581a8]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x581ac]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x581b8]
push ecx
call fcn.00409e70
mov ebx, eax
mov eax, dword [esp + 0x581c0]
add esp, 0x50
test eax, eax
mov dword [esp + 0x28], ebx
je 0x40b969
cmp dword [esp + 0x58178], 1
je 0x40b969
call fcn.00447d90
mov eax, dword [esp + 0x58144]
mov ecx, dword [esp + 0x58148]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x5815c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x58160]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
sub esp, 0xc4
mov ecx, 0x31
mov esi, 0x13b7e70
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00409990
mov eax, dword [esp + 0x100]
add esp, 0xd4
inc eax
test eax, eax
jle 0x40b639
mov edx, eax
xor eax, eax
test ebx, ebx
jle 0x40b636
jmp 0x40b600
cmp word [esp + eax*2 + 0x3e078], 0
je 0x40b636
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + eax*4 + 0xc078]
add edi, ecx
mov ecx, 0xff
mov esi, edi
cmp esi, ecx
mov dword [esp + eax*4 + 0xc078], edi
jle 0x40b631
mov dword [esp + eax*4 + 0xc078], ecx
inc eax
cmp eax, ebx
jl 0x40b600
dec edx
jne 0x40b5f2
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x14], ebp
jle 0x40b87c
lea ebx, [esp + 0x3407e]
lea ecx, [esp + 0x3e078]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ecx
lea ecx, [ecx]
cmp word [ecx], 0
je 0x40b878
mov eax, dword [esp + ebp*4 + 0xc078]
test eax, eax
jle 0x40b855
mov edx, dword [esp + ebp*4 + 0x30078]
mov esi, dword [esp + ebp*4 + 0x78]
push eax
mov eax, dword [esp + ebp*4 + 0x1807c]
push ecx
mov ecx, dword [esp + ebp*8 + 0x4084]
push edx
mov edx, dword [esp + ebp*8 + 0x4084]
push eax
push ecx
push edx
add esi, dword [0xd0d0fc]
imul esi, esi, 0x170
sub esp, 0x170
add esi, 0x6f1080
mov edi, esp
mov ecx, 0x5c
rep movsd dword es:[edi], dword [esi]
sub esp, 0xc4
lea eax, [esp + 0x29c]
mov edi, esp
mov ecx, 0x31
mov esi, 0x13b7e70
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00409080
mov ax, word [ebx]
add esp, 0x250
test ax, ax
je 0x40b855
movzx eax, ax
dec eax
mov dword [esp + 0x18], 0
je 0x40b743
dec eax
je 0x40b72a
dec eax
je 0x40b716
push 0x47ac70
call fcn.00408840
add esp, 4
jmp 0x40b75b
movzx ecx, word [ebx + 2]
mov eax, dword [esp + ebp*8 + 0x10078]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x40b757
movzx ecx, word [ebx + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
jmp 0x40b757
mov eax, dword [esp + ebp*8 + 0x10078]
movzx ecx, word [ebx + 2]
cdq
sub eax, edx
shr ecx, 1
sar eax, 1
sub eax, ecx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x10]
xor ebx, ebx
cmp word [edx], bx
jbe 0x40b851
mov ebp, edx
add ebp, 0xfffffffa
nop
mov eax, dword [0x4a7cec]
mov edi, dword [0xd0d0fc]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
mov edx, dword [esp + ecx*4 + 0xc078]
push edx
mov edx, dword [esp + ecx*4 + 0x3007c]
sar eax, 1
add eax, edi
imul eax, eax, 0x170
mov esi, dword [eax + 0x6f0c54]
push ebp
push edx
mov edx, dword [esp + ecx*4 + 0x18084]
push edx
mov edx, dword [esp + ecx*8 + 0x408c]
sub edx, esi
mov esi, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x38]
add edx, esi
add edx, dword [esp + ecx*8 + 0x408c]
push edx
sub esp, 0x170
lea esi, [eax + 0x6f0c30]
mov edi, esp
mov ecx, 0x5c
rep movsd dword es:[edi], dword [esi]
sub esp, 0xc4
lea eax, [esp + 0x2b0]
mov edi, esp
mov ecx, 0x31
mov esi, 0x13b7e70
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00409080
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x268]
mov dword [esp + 0x28c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x294], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x290], edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x260]
add esi, ecx
movzx ecx, word [eax]
add esp, 0x250
inc ebx
add ebp, 2
cmp ebx, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x18], esi
jl 0x40b770
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
inc ebp
add ecx, 2
add ebx, 0xa
cmp ebp, eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], ebx
jl 0x40b660
mov ebx, dword [esp + 0x28]
call fcn.00447db0
cmp dword [esp + ebx*4 + 0xc074], 0xff
jge 0x40b969
push 1
call fcn.0042d160
add esp, 4
test eax, eax
je 0x40b950
lea edx, [esp + 0x34]
push 0xffffffffffffffff
push edx
call fcn.0044c300
add esp, 8
test eax, eax
jne 0x40b969
push eax
call fcn.0044c2c0
add esp, 4
test eax, eax
jne 0x40b969
lea eax, [esp + 0x34]
push eax
call fcn.0044c440
add esp, 4
cmp eax, 1
je 0x40b969
call fcn.0044c610
cmp eax, 1
je 0x40b942
call dword [0x47937c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add ecx, edx
cmp ecx, eax
jae 0x40b892
mov esi, dword [0x47937c]
call esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x58170]
sub eax, ebp
sub eax, ebx
xor edx, edx
div edi
mov dword [esp + 0x2c], eax
call esi
sub eax, ebp
sub eax, ebx
xor edx, edx
div edi
sub edi, edx
mov dword [esp + 0x1c], edi
call esi
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
jmp 0x40b594
push 1
call fcn.0042d160
add esp, 4
test eax, eax
jne 0x40b969
xor eax, eax
mov ecx, dword [esp + 0x58078]
call fcn.0045c945
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5806c
ret
xor eax, eax
test ebx, ebx
jle 0x40b98b
nop
cmp word [esp + eax*2 + 0x3e078], 0
je 0x40b98b
mov dword [esp + eax*4 + 0xc078], 0xff
inc eax
cmp eax, ebx
jl 0x40b970
call fcn.00447d90
mov ecx, dword [esp + 0x58144]
mov edx, dword [esp + 0x58148]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x5815c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58160]
mov dword [eax + 8], ecx
sub esp, 0xc4
mov dword [eax + 0xc], edx
mov ecx, 0x31
mov esi, 0x13b7e70
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00409990
add esp, 0xd4
xor ebp, ebp
test ebx, ebx
jle 0x40bc20
lea ebx, [esp + 0x3407e]
lea eax, [esp + 0x3e078]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
jmp 0x40ba01
mov eax, dword [esp + 0x18]
cmp word [eax], 0
je 0x40bc20
mov ecx, dword [esp + ebp*4 + 0xc078]
mov edx, dword [esp + ebp*4 + 0x30078]
mov esi, dword [esp + ebp*4 + 0x78]
push ecx
mov ecx, dword [esp + ebp*8 + 0x4080]
push eax
mov eax, dword [esp + ebp*4 + 0x18080]
push edx
mov edx, dword [esp + ebp*8 + 0x4084]
push eax
push ecx
push edx
add esi, dword [0xd0d0fc]
imul esi, esi, 0x170
sub esp, 0x170
add esi, 0x6f1080
mov edi, esp
mov ecx, 0x5c
rep movsd dword es:[edi], dword [esi]
sub esp, 0xc4
lea eax, [esp + 0x2b0]
mov edi, esp
mov ecx, 0x31
mov esi, 0x13b7e70
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00409080
mov ax, word [ebx]
add esp, 0x250
test ax, ax
je 0x40bc01
movzx eax, ax
dec eax
mov dword [esp + 0x1c], 0
je 0x40badc
dec eax
je 0x40bac3
dec eax
je 0x40baaf
push 0x47ac70
call fcn.00408840
add esp, 4
jmp 0x40baf4
movzx ecx, word [ebx + 2]
mov eax, dword [esp + ebp*8 + 0x10078]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x40baf0
movzx ecx, word [ebx + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cdq
sub eax, edx
sar eax, 1
jmp 0x40baf0
mov eax, dword [esp + ebp*8 + 0x10078]
movzx ecx, word [ebx + 2]
cdq
sub eax, edx
shr ecx, 1
sar eax, 1
sub eax, ecx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x10]
xor ebx, ebx
cmp word [edx], bx
jbe 0x40bbfd
mov eax, edx
add eax, 0xfffffffa
mov dword [esp + 0x14], eax
lea esp, [esp]
mov eax, dword [0x4a7cec]
mov ecx, dword [0xd0d0fc]
mov edi, dword [esp + ebp*8 + 0x4078]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add eax, ecx
mov ecx, dword [esp + ebp*4 + 0xc078]
imul eax, eax, 0x170
mov esi, dword [eax + 0x6f0c54]
push ecx
mov ecx, dword [esp + ebp*4 + 0x3007c]
push edx
mov edx, dword [esp + ebp*4 + 0x18080]
push ecx
mov ecx, dword [esp + ebp*8 + 0x4088]
push edx
mov edx, dword [esp + 0x30]
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x30]
add edx, ecx
add edx, edi
push edx
sub esp, 0x170
mov edi, esp
lea esi, [eax + 0x6f0c30]
mov ecx, 0x5c
rep movsd dword es:[edi], dword [esi]
sub esp, 0xc4
lea edx, [esp + 0x29c]
mov edi, esp
mov ecx, 0x31
mov esi, 0x13b7e70
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00409080
mov ecx, dword [eax]
mov esi, dword [esp + 0x26c]
mov edx, dword [eax + 4]
mov dword [esp + 0x28c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x294], ecx
mov ecx, dword [eax + 0xc]
add esi, ecx
mov ecx, dword [esp + 0x264]
add ecx, 2
mov dword [esp + 0x290], edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x260]
mov dword [esp + 0x264], ecx
movzx ecx, word [eax]
add esp, 0x250
inc ebx
cmp ebx, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], esi
jl 0x40bb10
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
inc ebp
add edx, 2
add ebx, 0xa
cmp ebp, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ebx
jl 0x40b9fd
call fcn.00447db0
mov ecx, dword [esp + 0x58078]
mov eax, 1
call fcn.0045c945
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5806c
ret