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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
cmp byte [ecx + 0x350], 0
mov ebp, dword [esi + 0xc]
sete al
push edi
movsx edi, word [ecx + 0x184]
cmp ebp, edi
lea eax, [eax + eax - 1]
mov byte [esp + 0x14], al
jge 0x47f2d3
movsx ebx, word [ecx + 0x186]
mov eax, 0x88888889
imul ebx
add edx, ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ebp
cmp eax, edi
jl 0x47f2ce
mov eax, edi
mov dword [esi + 0xc], eax
jmp 0x47f2d6
mov dword [esi + 0xc], edi
movsx ebx, word [ecx + 0x498]
mov ebp, dword [esi + 0x10]
cmp ebp, ebx
jle 0x47f30d
movsx edi, word [ecx + 0x186]
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 6
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, ebp
sub eax, edi
cmp eax, ebx
jg 0x47f308
mov eax, ebx
mov dword [esi + 0x10], eax
jmp 0x47f310
mov dword [esi + 0x10], ebx
xor edx, edx
cmp byte [ecx + 0x573], dl
jle 0x47f326
mov ecx, dword [esi + 0xec]
mov byte [ecx + 0x14], 1
jmp 0x47f334
mov eax, dword [esi + 0xec]
cmp eax, edx
je 0x47f334
mov byte [eax + 0x14], 0
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x573], 1
jle 0x47f34c
mov ecx, dword [esi + 0xf0]
mov byte [ecx + 0x14], 1
jmp 0x47f35a
mov eax, dword [esi + 0xf0]
cmp eax, edx
je 0x47f35a
mov byte [eax + 0x14], 0
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x573], 2
jle 0x47f372
mov ecx, dword [esi + 0xf4]
mov byte [ecx + 0x14], 1
jmp 0x47f380
mov eax, dword [esi + 0xf4]
cmp eax, edx
je 0x47f380
mov byte [eax + 0x14], 0
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x24]
mov ecx, 0xc8
cmp word [eax + 0x49e], cx
setl al
mov byte [edi + 0x14], al
mov eax, dword [esi + 0x24]
cmp byte [eax + 0x14], 0
mov edi, dword [esi + 0x4c]
sete al
mov byte [edi + 0x14], al
mov eax, dword [esi + 0x18]
cmp word [eax + 0x4a0], dx
mov edi, dword [esi + 0x60]
setg al
mov byte [edi + 0x14], al
mov eax, dword [esi + 0x60]
cmp byte [eax + 0x14], 0
mov edi, dword [esi + 0x74]
sete al
mov byte [edi + 0x14], al
mov eax, dword [esi + 0x18]
cmp word [eax + 0x4a0], dx
mov edi, dword [esi + 0x38]
sete al
mov byte [edi + 0x14], al
mov edi, dword [esi + 0x18]
mov eax, 0x190
cmp word [edi + 0x49e], ax
mov edi, dword [esi + 0x28]
setl bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x28]
cmp byte [edi + 0x14], 0
mov edi, dword [esi + 0x50]
sete bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x18]
cmp word [edi + 0x4a0], cx
mov edi, dword [esi + 0x64]
setg bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x64]
cmp byte [edi + 0x14], 0
mov edi, dword [esi + 0x78]
sete bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x18]
cmp word [edi + 0x4a0], cx
mov edi, dword [esi + 0x3c]
sete cl
mov byte [edi + 0x14], cl
mov edi, dword [esi + 0x18]
mov ecx, 0x258
cmp word [edi + 0x49e], cx
mov edi, dword [esi + 0x2c]
setl bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x2c]
cmp byte [edi + 0x14], 0
mov edi, dword [esi + 0x54]
sete bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x18]
cmp word [edi + 0x4a0], ax
mov edi, dword [esi + 0x68]
setg bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x68]
cmp byte [edi + 0x14], 0
mov edi, dword [esi + 0x7c]
sete bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x18]
cmp word [edi + 0x4a0], ax
mov edi, dword [esi + 0x40]
sete al
mov byte [edi + 0x14], al
mov edi, dword [esi + 0x18]
mov eax, 0x320
cmp word [edi + 0x49e], ax
mov edi, dword [esi + 0x30]
setl bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x30]
cmp byte [edi + 0x14], 0
mov edi, dword [esi + 0x58]
sete bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x18]
cmp word [edi + 0x4a0], cx
mov edi, dword [esi + 0x6c]
setg bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x6c]
cmp byte [edi + 0x14], 0
mov edi, dword [esi + 0x80]
sete bl
mov byte [edi + 0x14], bl
mov edi, dword [esi + 0x18]
cmp word [edi + 0x4a0], cx
mov edi, dword [esi + 0x44]
sete cl
mov byte [edi + 0x14], cl
mov ecx, dword [esi + 0x18]
cmp word [ecx + 0x49e], 0x3e8
mov edi, dword [esi + 0x34]
setl cl
mov byte [edi + 0x14], cl
mov ecx, dword [esi + 0x34]
cmp byte [ecx + 0x14], 0
mov edi, dword [esi + 0x5c]
sete cl
mov byte [edi + 0x14], cl
mov ecx, dword [esi + 0x18]
cmp word [ecx + 0x4a0], ax
mov edi, dword [esi + 0x70]
setg cl
mov byte [edi + 0x14], cl
mov ecx, dword [esi + 0x70]
cmp byte [ecx + 0x14], 0
mov edi, dword [esi + 0x84]
sete cl
mov byte [edi + 0x14], cl
mov ecx, dword [esi + 0x18]
cmp word [ecx + 0x4a0], ax
mov ecx, dword [esi + 0x48]
sete al
mov byte [ecx + 0x14], al
mov eax, dword [esi + 0x18]
movsx ecx, byte [eax + 0x5e6]
mov ebp, dword [eax + 0x5c0]
add ebp, ecx
cmp byte [eax + 0x570], 0
je 0x47f66e
mov eax, dword [esi + 0x9c]
mov byte [eax + 0x14], 1
mov ecx, dword [esi + 0xb0]
mov byte [ecx + 0x14], 1
mov eax, dword [esi + 0xc4]
mov byte [eax + 0x14], 0
mov eax, dword [esi + 0xd8]
or ecx, 0xffffffff
cmp eax, edx
je 0x47f5af
add dword [eax + 0x158], ecx
mov dword [esi + 0xd8], edx
mov eax, dword [esi + 0xa0]
mov byte [eax + 0x14], 1
mov eax, dword [esi + 0xb4]
mov byte [eax + 0x14], 1
mov eax, dword [esi + 0xc8]
mov byte [eax + 0x14], 0
mov eax, dword [esi + 0xdc]
cmp eax, edx
je 0x47f5e3
add dword [eax + 0x158], ecx
mov dword [esi + 0xdc], edx
mov eax, dword [esi + 0xa4]
mov byte [eax + 0x14], 1
mov eax, dword [esi + 0xb8]
mov byte [eax + 0x14], 1
mov eax, dword [esi + 0xcc]
mov byte [eax + 0x14], 0
mov eax, dword [esi + 0xe0]
cmp eax, edx
je 0x47f617
add dword [eax + 0x158], ecx
mov dword [esi + 0xe0], edx
mov eax, dword [esi + 0xa8]
mov byte [eax + 0x14], 1
mov eax, dword [esi + 0xbc]
mov byte [eax + 0x14], 1
mov eax, dword [esi + 0xd0]
mov byte [eax + 0x14], 0
mov eax, dword [esi + 0xe4]
cmp eax, edx
je 0x47f64b
add dword [eax + 0x158], ecx
mov dword [esi + 0xe4], edx
mov eax, dword [esi + 0xac]
mov byte [eax + 0x14], 1
mov eax, dword [esi + 0xc0]
mov byte [eax + 0x14], 1
mov eax, dword [esi + 0xd4]
mov byte [eax + 0x14], 0
jmp 0x47fa37
cmp ecx, edx
jne 0x47f67d
cmp ebp, edx
jle 0x47f67d
mov eax, 1
jmp 0x47f67f
xor eax, eax
mov ecx, dword [esi + 0x88]
mov byte [ecx + 0x14], al
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x5e6], 1
jne 0x47f6a0
cmp ebp, 1
jle 0x47f6a0
mov eax, 1
jmp 0x47f6a2
xor eax, eax
mov ecx, dword [esi + 0x8c]
mov byte [ecx + 0x14], al
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x5e6], 2
jne 0x47f6c3
cmp ebp, 2
jle 0x47f6c3
mov eax, 1
jmp 0x47f6c5
xor eax, eax
mov ecx, dword [esi + 0x90]
mov byte [ecx + 0x14], al
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x5e6], 3
jne 0x47f6e6
cmp ebp, 3
jle 0x47f6e6
mov eax, 1
jmp 0x47f6e8
xor eax, eax
mov ecx, dword [esi + 0x94]
mov byte [ecx + 0x14], al
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x5e6], 4
jne 0x47f709
cmp ebp, 4
jle 0x47f709
mov eax, 1
jmp 0x47f70b
xor eax, eax
mov ecx, dword [esi + 0x98]
mov byte [ecx + 0x14], al
mov edi, dword [esi + 0x18]
xor ebx, ebx
cmp byte [edi + 0x5e6], bl
je 0x47f79b
mov ebx, dword [edi + 0x5f4]
mov eax, dword [edi + 0x5f8]
add eax, ebx
cmp ebx, eax
jbe 0x47f73a
call fcn.0081ff70
xor edx, edx
mov eax, dword [edi + 0x5f4]
mov ecx, dword [edi + 0x5f8]
add ecx, eax
cmp ebx, ecx
ja 0x47f750
cmp ebx, eax
jae 0x47f757
call fcn.0081ff70
xor edx, edx
mov eax, dword [edi + 0x5f4]
add eax, dword [edi + 0x5f8]
cmp ebx, eax
jb 0x47f76e
call fcn.0081ff70
xor edx, edx
mov eax, dword [edi + 0x5f0]
cmp eax, ebx
ja 0x47f77a
sub ebx, eax
mov ecx, dword [edi + 0x5ec]
mov eax, dword [ecx + ebx*4]
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0x52c], 2
movzx ebx, word [eax + 2]
jne 0x47f79b
cmp ebx, 1
jle 0x47f79b
sub ebx, 1
cmp ebx, ebp
jle 0x47f7a4
mov ebx, 0xf
cmp ebx, edx
mov eax, dword [esi + 0x9c]
mov byte [eax + 0x14], 0
jle 0x47f7bd
cmp ebp, edx
jle 0x47f7bd
mov eax, 1
jmp 0x47f7bf
xor eax, eax
cmp ebx, edx
mov ecx, dword [esi + 0xb0]
mov byte [ecx + 0x14], al
jg 0x47f7d7
cmp ebp, edx
jle 0x47f7d7
mov eax, 1
jmp 0x47f7d9
xor eax, eax
mov ecx, dword [esi + 0xc4]
mov byte [ecx + 0x14], al
or ecx, 0xffffffff
cmp ebx, edx
jg 0x47f7ff
mov eax, dword [esi + 0xd8]
cmp eax, edx
je 0x47f7ff
add dword [eax + 0x158], ecx
mov dword [esi + 0xd8], edx
cmp ebx, 1
mov eax, dword [esi + 0xa0]
mov byte [eax + 0x14], 0
jle 0x47f81a
cmp ebp, 1
jle 0x47f81a
mov eax, 1
jmp 0x47f81c
xor eax, eax
cmp ebx, 1
mov edi, dword [esi + 0xb4]
mov byte [edi + 0x14], al
jg 0x47f836
cmp ebp, 1
jle 0x47f836
mov eax, 1
jmp 0x47f838
xor eax, eax
cmp ebx, 1
mov edi, dword [esi + 0xc8]
mov byte [edi + 0x14], al
jg 0x47f85c
mov eax, dword [esi + 0xdc]
cmp eax, edx
je 0x47f85c
add dword [eax + 0x158], ecx
mov dword [esi + 0xdc], edx
cmp ebx, 2
mov eax, dword [esi + 0xa4]
mov byte [eax + 0x14], 0
jle 0x47f877
cmp ebp, 2
jle 0x47f877
mov eax, 1
jmp 0x47f879
xor eax, eax
cmp ebx, 2
mov edi, dword [esi + 0xb8]
mov byte [edi + 0x14], al
jg 0x47f893
cmp ebp, 2
jle 0x47f893
mov eax, 1
jmp 0x47f895
xor eax, eax
cmp ebx, 2
mov edi, dword [esi + 0xcc]
mov byte [edi + 0x14], al
jg 0x47f8b9
mov eax, dword [esi + 0xe0]
cmp eax, edx
je 0x47f8b9
add dword [eax + 0x158], ecx
mov dword [esi + 0xe0], edx
cmp ebx, 3
mov eax, dword [esi + 0xa8]
mov byte [eax + 0x14], 0
jle 0x47f8d4
cmp ebp, 3
jle 0x47f8d4
mov eax, 1
jmp 0x47f8d6
xor eax, eax
cmp ebx, 3
mov edi, dword [esi + 0xbc]
mov byte [edi + 0x14], al
jg 0x47f8f0
cmp ebp, 3
jle 0x47f8f0
mov eax, 1
jmp 0x47f8f2
xor eax, eax
cmp ebx, 3
mov edi, dword [esi + 0xd0]
mov byte [edi + 0x14], al
jg 0x47f916
mov eax, dword [esi + 0xe4]
cmp eax, edx
je 0x47f916
add dword [eax + 0x158], ecx
mov dword [esi + 0xe4], edx
cmp ebx, 4
mov eax, dword [esi + 0xac]
mov byte [eax + 0x14], 0
jle 0x47f931
cmp ebp, 4
jle 0x47f931
mov eax, 1
jmp 0x47f933
xor eax, eax
cmp ebx, 4
mov edi, dword [esi + 0xc0]
mov byte [edi + 0x14], al
jg 0x47f94d
cmp ebp, 4
jle 0x47f94d
mov eax, 1
jmp 0x47f94f
xor eax, eax
cmp ebx, 4
mov edi, dword [esi + 0xd4]
mov byte [edi + 0x14], al
jg 0x47f973
mov eax, dword [esi + 0xe8]
cmp eax, edx
je 0x47f973
add dword [eax + 0x158], ecx
mov dword [esi + 0xe8], edx
mov eax, dword [esi + 0x18]
movsx eax, byte [eax + 0x5e6]
cmp ebx, eax
jg 0x47f9df
cmp ebx, edx
jle 0x47f9df
xor ebp, ebp
test ebx, ebx
jle 0x47fa4d
lea edi, [esi + 0xd8]
cmp dword [edi], 0
jne 0x47f9cd
mov eax, dword [edi - 0x50]
fld dword [eax + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push 0
mov edx, dword [edx + 0xc]
push 1
push dword [esp + 0x1c]
sub esp, 8
fstp dword [esp + 4]
fld dword [eax + 0xc]
xor eax, eax
test ebp, ebp
fstp dword [esp]
setg al
add ax, 0x20
push eax
call edx
mov dword [edi], eax
add ebp, 1
add edi, 4
cmp ebp, ebx
jl 0x47f995
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0xd8]
cmp eax, edx
je 0x47f9f5
add dword [eax + 0x158], ecx
mov dword [esi + 0xd8], edx
mov eax, dword [esi + 0xdc]
cmp eax, edx
je 0x47fa0b
add dword [eax + 0x158], ecx
mov dword [esi + 0xdc], edx
mov eax, dword [esi + 0xe0]
cmp eax, edx
je 0x47fa21
add dword [eax + 0x158], ecx
mov dword [esi + 0xe0], edx
mov eax, dword [esi + 0xe4]
cmp eax, edx
je 0x47fa37
add dword [eax + 0x158], ecx
mov dword [esi + 0xe4], edx
mov eax, dword [esi + 0xe8]
cmp eax, edx
je 0x47fa4d
add dword [eax + 0x158], ecx
mov dword [esi + 0xe8], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret