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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x2c], ecx
add eax, 1
cmp eax, 0x32
mov dword [ecx + 0x1c], eax
ja 0x407161
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
cmp byte [eax], 0
jne 0x406fa1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x2c]
mov ecx, dword [esi + 0x18]
call dword [0x548868]
mov eax, dword [esi + 0x38]
mov dword [esi + 0x1c], 0
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
movzx eax, byte [ecx + eax + 1]
cmp al, 0x16
je 0x4071f0
cmp al, 0x17
je 0x4072a0
cmp al, 3
jne 0x406f99
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x24]
cmp al, 0xc
je 0x4073e3
cmp al, 0x20
je 0x407740
test al, al
jne 0x406f99
mov edx, dword [ebp - 0x2c]
mov esi, dword [0x548bcc]
mov eax, dword [edx + 0x40]
lea ebx, [edx + 0x44]
lea edi, [edx + 0x64]
mov ecx, dword [eax + 0xe8]
mov eax, dword [edx + 0x2c]
cmp word [eax], 0xff00
mov eax, ebx
cmovne eax, edi
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x2c]
sub esp, 4
mov eax, dword [edx + 0x40]
mov edx, dword [edx + 0x2c]
cmp word [edx + 2], 0xff00
mov ecx, dword [eax + 0xec]
mov eax, ebx
cmovne eax, edi
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x2c]
sub esp, 4
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0xf0]
mov eax, edx
mov edx, dword [edx + 0x2c]
add eax, 0x64
cmp word [edx + 4], 0xff00
jne 0x407061
mov eax, dword [ebp - 0x2c]
add eax, 0x44
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x2c]
sub esp, 4
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0xf4]
mov eax, edx
mov edx, dword [edx + 0x2c]
add eax, 0x64
cmp word [edx + 6], 0xff00
jne 0x40708b
mov eax, dword [ebp - 0x2c]
add eax, 0x44
mov dword [esp], eax
call esi
mov ebx, dword [ebp - 0x2c]
sub esp, 4
mov esi, dword [0x548cf0]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x108]
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 8]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x114]
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 0xa]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x11c]
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 0xc]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x124]
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 0xe]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x10c]
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 0x10]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x110]
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 0x12]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x118]
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 0x14]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x120]
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 0x16]
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x406f99
mov edi, ecx
mov ecx, dword [ecx + 0x18]
lea esi, [ebp - 0x1c]
call dword [0x548868]
mov ebx, dword [edi + 0x28]
mov dword [edi + 0x1c], 0
mov dword [esp + 4], 0xd
mov dword [esp], 0x4a34ad
call dword [0x5488c0]
mov dword [esp + 4], 0
mov dword [ebp - 0x1c], eax
mov ecx, ebx
mov dword [esp], esi
call dword [0x548a44]
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov edx, dword [eax]
test edx, edx
je 0x4071c6
cmp edx, 0xffffffff
je 0x406f99
lock sub dword [eax], 1
mov eax, dword [ebp - 0x1c]
jne 0x406f99
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x548808]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], ecx
lea esi, [ebp - 0x1c]
call fcn.00493360
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0042aa40
mov ecx, esi
call fcn.00432c70
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x38]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
movsx edx, byte [eax + edx + 4]
mov eax, dword [eax + 4]
sub eax, 7
cmp edx, eax
je 0x407370
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax + 0x28]
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x4a34c8
mov dword [esp], esi
call dword [0x5488bc]
lea eax, [ebp - 0x28]
mov ecx, esi
mov dword [esp], eax
call dword [0x5488cc]
sub esp, 4
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [0x548a44]
sub esp, 8
mov ecx, esi
call fcn.004931c0
lea ecx, [ebp - 0x28]
call fcn.004931c0
jmp 0x406f99
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
call fcn.00493360
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0042aa40
mov ecx, esi
call fcn.00432c70
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x3c]
mov edx, dword [edx + 0x38]
mov edx, dword [edx]
mov ebx, dword [eax + 0xc]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x30], ebx
movzx ebx, byte [eax + ebx + 3]
cmp byte [edx + ecx + 3], bl
jne 0x407360
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx + 0x28]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x30]
movzx eax, byte [eax + ebx + 6]
cmp byte [edx + ecx + 6], al
je 0x407764
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x4a34e2
mov dword [esp], esi
call dword [0x5488bc]
mov dword [esp], edi
mov ecx, esi
call dword [0x5488cc]
sub esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [0x548a44]
mov ecx, esi
sub esp, 8
call fcn.004931c0
mov ecx, edi
call fcn.004931c0
jmp 0x406f99
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x40730b
mov eax, dword [0x54880c]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
call dword [0x548818]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x38]
mov ecx, dword [eax]
cmp dword [ecx + 4], 7
jle 0x4073c3
xor edi, edi
xor eax, eax
add eax, ecx
add eax, dword [ecx + 0xc]
lea ecx, [ebp - 0x24]
movsx eax, byte [eax + 5]
mov dword [esp], eax
call dword [0x548828]
mov edx, dword [ebp - 0x2c]
add edi, 1
sub esp, 4
movzx eax, di
mov edx, dword [edx + 0x38]
mov ecx, dword [edx]
mov ebx, dword [ecx + 4]
lea edx, [ebx - 7]
cmp eax, edx
jl 0x407393
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x3c]
mov edx, dword [eax + 0xc]
cmp byte [eax + edx + 3], 7
ja case.default.0x4073dc
movzx eax, byte [eax + edx + 3]
jmp dword [eax*4 + 0x4a34f0]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [0x548d10]
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax + 0x1d0]
mov eax, dword [ebx + 0x2c]
cmp word [eax + 0x18], 0
setne al
movzx eax, al
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x1cc]
mov eax, dword [ebx + 0x2c]
cmp word [eax + 0x1a], 0
setne al
movzx eax, al
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x1c8]
mov eax, dword [ebx + 0x2c]
cmp word [eax + 0x1c], 0
setne al
movzx eax, al
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x1c4]
mov eax, dword [ebx + 0x2c]
cmp word [eax + 0x1e], 0
setne al
movzx eax, al
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 4
mov ecx, dword [eax + 0x1a8]
mov eax, dword [ebx + 0x2c]
movzx eax, word [eax + 0x22]
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fdiv dword [0x4a3d34]
fstp qword [esp]
call dword [0x548afc]
mov eax, dword [ebx + 0x40]
sub esp, 8
mov ecx, dword [eax + 0x1c0]
mov eax, dword [ebx + 0x2c]
cmp word [eax + 0x24], 0
setne al
movzx eax, al
mov dword [esp], eax
call esi
sub esp, 4
jmp 0x406f99
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 0x88]
mov dword [ebp - 0x20], ecx
call fcn.00493360
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042aa40
mov dword [esp], esi
mov ecx, ebx
call dword [0x548d54]
mov ecx, esi
sub esp, 4
call fcn.004931c0
mov ecx, edi
call fcn.00432c70
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax + 0x28]
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x4a34bb
mov dword [esp], esi
call dword [0x5488bc]
lea eax, [ebp - 0x28]
mov ecx, esi
mov dword [esp], eax
call dword [0x5488cc]
sub esp, 4
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [0x548a44]
mov ecx, esi
sub esp, 8
call fcn.004931c0
lea ecx, [ebp - 0x24]
call fcn.00432c70
jmp 0x40728c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 0x60]
mov dword [ebp - 0x20], ecx
call fcn.00493360
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042aa40
mov dword [esp], esi
mov ecx, ebx
call dword [0x548d54]
jmp 0x4074f5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 0x38]
mov dword [ebp - 0x20], ecx
call fcn.00493360
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042aa40
mov dword [esp], esi
mov ecx, ebx
call dword [0x548d54]
jmp 0x4074f5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
call fcn.00493360
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042aa40
mov dword [esp], esi
mov ecx, ebx
call dword [0x548d54]
jmp 0x4074f5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 0xa0]
mov dword [ebp - 0x20], ecx
call fcn.00493360
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042aa40
mov dword [esp], esi
mov ecx, ebx
call dword [0x548d54]
jmp 0x4074f5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 0x78]
mov dword [ebp - 0x20], ecx
call fcn.00493360
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042aa40
mov dword [esp], esi
mov ecx, ebx
call dword [0x548d54]
jmp 0x4074f5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 0xb0]
mov dword [ebp - 0x20], ecx
call fcn.00493360
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042aa40
mov dword [esp], esi
mov ecx, ebx
call dword [0x548d54]
jmp 0x4074f5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
lea edi, [ebp - 0x20]
mov eax, dword [eax + 0x40]
mov ebx, dword [eax + 0x28]
mov dword [ebp - 0x20], ecx
call fcn.00493360
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x20
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0042aa40
mov dword [esp], esi
mov ecx, ebx
call dword [0x548d54]
jmp 0x4074f5
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax + 0xc0]
mov eax, dword [edx + 0x2c]
movzx eax, word [eax + 0x40]
mov dword [esp], eax
call dword [0x548cf0]
sub esp, 4
jmp 0x406f99
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0x4a34d5
mov dword [esp], esi
call dword [0x5488bc]
mov dword [esp], edi
mov ecx, esi
call dword [0x5488cc]
sub esp, 4
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [0x548a44]
jmp 0x407346