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

Disassembly:
sub esp, 0xc8
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x1c4]
push esi
mov esi, dword [eax]
test esi, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
je 0x61202f
cmp byte [esi + 0x4a], 8
je 0x612039
xor eax, eax
pop esi
add esp, 0xc8
ret
push ebx
push ebp
push edi
push 1
mov ecx, esi
call fcn.005b93c0
mov edi, eax
push 1
mov ecx, esi
mov dword [esp + 0x38], edi
call fcn.005b9400
push eax
mov dword [esp + 0x2c], eax
call fcn.004022d0
mov eax, dword [0x803680]
movsx ebx, word [esi + 0x44]
movsx ebp, word [esi + 0x46]
push eax
call fcn.0043e960
add esp, 8
cmp eax, 0x60100
jle 0x6120a3
mov eax, dword [0x803680]
and eax, 7
or eax, 8
push eax
push 0x30000
call fcn.00440870
mov dword [esp + 0x48], eax
mov eax, dword [0x803680]
and eax, 7
or eax, 8
push eax
jmp 0x6120ca
push 0
call fcn.0043e960
add esp, 4
cmp eax, 0x60100
jle 0x6128d6
push 8
push 0x30000
call fcn.00440870
mov dword [esp + 0x48], eax
push 8
push 0x30000
call fcn.00440870
movsx ecx, word [esi + 0x44]
mov dword [esp + 0x3c], eax
movsx eax, word [esi + 0x46]
imul eax, ecx
add eax, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
add esp, 0x10
xor esi, esi
test eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], edi
jle 0x61214b
mov edi, dword [esp + 0xdc]
add edi, 0x3c
lea esp, [esp]
mov eax, dword [edi - 0x18]
test eax, eax
je 0x61213f
mov edx, dword [edi - 8]
push edx
call fcn.004022d0
mov eax, dword [edi]
push eax
call fcn.004022d0
mov ecx, dword [edi - 0xc]
mov edx, dword [edi - 4]
add esp, 8
mov dword [esp + esi*4 + 0xb8], ecx
mov dword [esp + esi*4 + 0x98], edx
mov eax, dword [esp + 0x30]
inc esi
add edi, 0x34
cmp esi, eax
jl 0x612110
mov eax, dword [0x8a1d18]
test eax, eax
jne 0x6122b6
mov edi, dword [esp + 0x28]
or eax, 0xffffffff
add edi, 8
mov dword [esp + 0x7c], 0xbf0000ff
mov dword [esp + 0x80], 0xbf00ff00
mov dword [esp + 0x84], 0xbfff0000
mov dword [esp + 0x88], 0xbfff00ff
mov dword [esp + 0x8c], 0xbfffff00
mov dword [esp + 0x90], 0xbf00ffff
mov dword [esp + 0x94], 0xbfffffff
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [esp + esi + 0x7c]
xor edx, edx
mov eax, edi
cmp dword [eax - 8], ecx
je 0x61222e
cmp dword [eax - 4], ecx
je 0x61220f
cmp dword [eax], ecx
je 0x612212
cmp dword [eax + 4], ecx
je 0x612217
cmp dword [eax + 8], ecx
je 0x61221c
cmp dword [eax + 0xc], ecx
je 0x612221
cmp dword [eax + 0x10], ecx
je 0x612226
cmp dword [eax + 0x14], ecx
je 0x61222b
add edx, 8
add eax, 0x20
cmp edx, 0x100
jl 0x6121d8
jmp 0x61222e
inc edx
jmp 0x61222e
add edx, 2
jmp 0x61222e
add edx, 3
jmp 0x61222e
add edx, 4
jmp 0x61222e
add edx, 5
jmp 0x61222e
add edx, 6
jmp 0x61222e
add edx, 7
cmp edx, 0x100
je 0x61223a
mov dword [esp + esi + 0x58], edx
add esi, 4
cmp esi, 0x1c
jl 0x6121d0
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov ecx, 0x40
mov edi, 0x8a05e8
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
cmp edi, ebp
jae 0x6122a6
mov esi, dword [esp + 0x18]
xor edx, edx
movzx ecx, byte [esi]
xor eax, eax
cmp ecx, dword [esp + eax*4 + 0x58]
je 0x612275
inc eax
cmp eax, 7
jl 0x612267
jmp 0x612298
mov cl, al
inc cl
mov byte [esi], cl
mov ecx, dword [eax*4 + 0x8a1d1c]
mov ebx, eax
shl ebx, 4
add ebx, ecx
inc ecx
mov dword [ebx*4 + 0x8a05e8], edx
mov dword [eax*4 + 0x8a1d1c], ecx
cmp eax, 7
jne 0x6122a0
mov byte [esi], 0
inc esi
inc edx
cmp esi, ebp
jb 0x612262
mov dword [esp + 0x18], edi
mov dword [0x8a1d18], 1
jmp 0x6122d3
mov edi, dword [esp + 0x34]
mov ecx, ebp
imul ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0xdc]
mov ecx, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x10], ecx
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x14], ecx
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x18], ecx
mov ecx, dword [edx + 0x20]
mov dword [eax + 0x1c], ecx
cmp edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
jae 0x61255e
mov esi, dword [esp + 0x18]
test ecx, ecx
movzx edi, byte [esi]
mov edi, dword [eax + edi*4]
mov dword [esp + 0x4c], edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x38], 8
mov dword [esp + 0x3c], 0
jle 0x61254d
lea esi, [edx + 0x3c]
lea ebx, [ebx]
mov edi, dword [esi - 0x18]
test edi, edi
je 0x612535
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + eax*4 + 0xb8]
mov bl, byte [ebp]
mov ecx, dword [esi - 8]
mov edi, dword [esi]
movzx edx, bl
mov ecx, dword [ecx + edx*4]
mov edx, dword [esp + eax*4 + 0x98]
movzx edx, byte [edx]
mov edi, dword [edi + edx*4]
mov edx, dword [esi + 8]
and edi, 0xff
test edx, edx
mov dword [esp + 0x14], ecx
je 0x6123ff
test edi, edi
jbe 0x6123ff
mov edx, dword [esp + 0x14]
movzx eax, cl
mov dword [esp + 0x44], eax
movzx ecx, ch
fild dword [esp + 0x44]
mov dword [esp + 0x44], ecx
fmul dword [0x784548]
shr edx, 0x10
movzx edx, dl
fstp dword [esp + 0x58]
fild dword [esp + 0x44]
mov dword [esp + 0x14], edx
push 1
push 3
fmul dword [0x784548]
lea eax, [esp + 0x60]
push eax
lea ecx, [esi + 0xc]
fstp dword [esp + 0x68]
push ecx
fild dword [esp + 0x24]
mov dword [esp + 0x74], 0
fmul dword [0x784548]
fstp dword [esp + 0x70]
call fcn.00611880
mov ecx, eax
mov eax, dword [esp + 0x4c]
add esp, 0x10
cmp edi, 0x7f
jbe 0x61242c
add bl, byte [esp + 0x38]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
mov cl, byte [esp + 0x13]
test cl, cl
mov byte [edx], bl
je 0x612502
dec dword [esp + 0x24]
mov byte [esp + 0x13], 0
jmp 0x612502
test edi, edi
jbe 0x612502
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
jge 0x612444
fadd dword [0x78454c]
fmul dword [0x787af0]
fst dword [esp + 0x50]
fcomp dword [0x784250]
fnstsw ax
test ah, 0x41
jne 0x612463
mov dword [esp + 0x50], 0x3f800000
fld dword [0x784250]
mov eax, dword [esp + 0x4c]
fsub dword [esp + 0x50]
push 0
mov dword [esp + 0x78], ecx
push 2
lea ecx, [esp + 0x58]
fstp dword [esp + 0x5c]
push ecx
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x88], eax
call fcn.00611880
mov ecx, eax
mov al, byte [esp + 0x23]
add esp, 0x10
test al, al
jne 0x6124e2
mov edi, dword [esi - 0xc]
mov edx, dword [esp + 0x48]
mov eax, ebp
sub eax, edi
movsx edi, word [edx + 0x44]
cdq
idiv edi
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov dword [ebx + edi*4], ecx
mov ebx, dword [esp + 0x40]
inc edi
cmp edi, 0xc000
mov dword [esp + 0x24], edi
mov word [ebx + edi*4 - 4], dx
mov word [ebx + edi*4 - 2], ax
jl 0x6124ee
dec edi
mov dword [esp + 0x24], edi
jmp 0x6124ee
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [eax + edx*4 - 4], ecx
mov eax, dword [esp + 0x18]
mov byte [eax], 0xff
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x13], 1
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + eax*4 + 0x98]
mov edx, dword [esp + 0xdc]
inc ebp
inc ecx
mov dword [esp + eax*4 + 0x98], ecx
mov ecx, dword [esi + 4]
mov dword [esp + eax*4 + 0xb8], ebp
mov eax, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
inc edi
add esi, 0x34
cmp edi, ecx
mov dword [esp + 0x3c], edi
jl 0x612350
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
inc esi
cmp esi, edi
mov dword [esp + 0x18], esi
jb 0x612320
test ecx, ecx
mov ebx, 8
mov dword [esp + 0x18], ebx
jle 0x612673
mov esi, dword [esp + 0xdc]
mov edx, dword [esp + 0x30]
add esi, 0x40
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 4]
test eax, eax
jne 0x6125b7
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
jle 0x612644
mov ecx, dword [esp + 0x28]
lea ecx, [ecx + ebx*4]
jmp 0x6125a0
mov edx, dword [esi - 0xc]
mov edx, dword [edx + eax*4]
mov dword [ecx], edx
mov edx, dword [esi]
inc eax
add ecx, 4
cmp eax, edx
jl 0x6125a0
jmp 0x612644
mov eax, dword [esi]
xor edi, edi
test eax, eax
jle 0x612644
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], edi
lea ebx, [esi + 8]
lea ebp, [eax + ecx*4]
mov edx, dword [esi - 0xc]
mov eax, dword [edx + edi*4]
movzx ecx, al
mov dword [esp + 0x14], ecx
movzx edx, ah
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fmul dword [0x784548]
mov dword [esp + 0x44], eax
shr eax, 0x10
movzx eax, al
fstp dword [esp + 0x58]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
push 1
fmul dword [0x784548]
push 3
lea ecx, [esp + 0x60]
push ecx
fstp dword [esp + 0x68]
push ebx
fild dword [esp + 0x24]
fmul dword [0x784548]
fstp dword [esp + 0x70]
call fcn.00611880
add esp, 0x10
mov dword [ebp], eax
mov eax, dword [esi]
inc edi
add ebp, 4
cmp edi, eax
jl 0x6125d5
mov ebx, dword [esp + 0x18]
mov edx, dword [esi - 0xc]
push edx
call fcn.004022d0
mov eax, dword [esi - 4]
push eax
call fcn.004022d0
mov edx, dword [esi]
mov eax, dword [esp + 0x24]
add ebx, edx
add esp, 8
add esi, 0x34
dec eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
jne 0x612581
mov eax, dword [esp + 0x24]
test eax, eax
je 0x612848
mov ebp, 0xff
sub ebp, ebx
cmp eax, ebp
jge 0x6126ea
xor ecx, ecx
test eax, eax
jle 0x612848
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
lea esi, [edx + ebx*4]
mov edx, dword [esp + 0x2c]
sub edx, eax
mov dword [esp + 0x14], edx
jmp 0x6126b0
mov ebx, dword [esp + 0x18]
nop
movsx edx, word [eax + 2]
mov edi, dword [esp + 0x48]
movsx edi, word [edi + 0x44]
mov ebp, dword [esp + 0x34]
imul edx, edi
movsx edi, word [eax]
add ebp, edx
mov edx, dword [esp + 0x14]
add bl, cl
mov byte [edi + ebp], bl
mov edx, dword [edx + eax]
mov dword [esi], edx
mov edx, dword [esp + 0x24]
inc ecx
add eax, 4
add esi, 4
cmp ecx, edx
jl 0x6126ab
jmp 0x612848
mov ecx, dword [esp + 0x2c]
push 0x14
push ebp
shl eax, 2
push eax
push ecx
call fcn.00610e30
add esp, 0x10
call fcn.00611440
mov ebx, dword [0x803958]
xor ecx, ecx
test ebx, ebx
jle 0x61274f
mov edx, 0x8a07d8
mov eax, 0x8a07cc
lea esp, [esp]
mov edi, dword [eax - 4]
mov esi, dword [eax]
sar edi, 4
sar esi, 4
mov dword [eax - 4], edi
mov edi, dword [eax + 4]
mov dword [eax], esi
mov esi, dword [eax + 8]
sar edi, 4
sar esi, 4
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [edx], ecx
inc ecx
add eax, 0x14
add edx, 0x14
cmp ecx, ebx
jl 0x612720
xor esi, esi
test ebp, ebp
jle 0x6127c4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov eax, 0x8a07cc
lea edi, [edx + ecx*4]
jmp 0x612770
mov ebx, dword [0x803958]
lea ecx, [ecx]
cmp eax, 0x8a07cc
jl 0x612790
cmp esi, ebx
jge 0x612790
mov dl, byte [eax]
mov cl, byte [eax + 4]
mov byte [esp + 0x13], dl
mov dl, byte [eax - 4]
mov byte [esp + 0x23], dl
mov dl, byte [eax + 8]
jmp 0x61279c
xor cl, cl
mov byte [esp + 0x13], cl
mov byte [esp + 0x23], cl
xor dl, dl
xor ebx, ebx
mov bh, dl
movzx edx, byte [esp + 0x23]
add edi, 4
add eax, 0x14
mov bl, cl
movzx ecx, byte [esp + 0x13]
shl ebx, 8
or ebx, ecx
shl ebx, 8
or ebx, edx
mov dword [edi - 4], ebx
inc esi
cmp esi, ebp
jl 0x612767
call fcn.00610ec0
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x612848
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
sub ebx, edi
mov dword [esp + 0x1c], eax
nop
mov ecx, dword [esp + 0x48]
movsx edx, word [ecx + 0x44]
movsx eax, word [edi + 2]
movsx esi, word [edi]
imul eax, edx
mov ecx, dword [esp + 0x34]
add ecx, eax
mov al, byte [esi + ecx]
add esi, ecx
cmp al, 0xff
jne 0x61283a
mov eax, dword [edi + ebx]
mov ecx, eax
mov edx, eax
shr edx, 0x18
push edx
shr ecx, 0x10
movzx ecx, cl
movzx edx, ah
push ecx
mov dword [esp + 0x1c], eax
push edx
and eax, 0xff
push eax
call fcn.00610ff0
add esp, 0x10
cmp eax, ebp
jge 0x612837
mov cl, byte [esp + 0x18]
add cl, al
mov byte [esi], cl
jmp 0x61283a
mov byte [esi], 0
mov eax, dword [esp + 0x1c]
add edi, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x6127e0
mov edx, dword [esp + 0x40]
push edx
call fcn.00440590
mov eax, dword [esp + 0x30]
push eax
call fcn.00440590
mov edi, dword [esp + 0x3c]
mov ecx, 0x8a05e8
add esp, 8
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov eax, 0x8a1d1c
mov edx, dword [eax]
xor esi, esi
test edx, edx
jle 0x61288f
mov dl, bl
inc dl
nop
mov ebp, dword [ecx]
mov byte [edi + ebp], dl
mov ebp, dword [eax]
inc esi
add ecx, 4
cmp esi, ebp
jl 0x612880
mov ecx, dword [esp + 0x1c]
add eax, 4
add ecx, 0x40
inc ebx
cmp eax, 0x8a1d38
mov dword [esp + 0x1c], ecx
jl 0x612873
mov esi, dword [esp + 0x28]
push esi
call fcn.004022d0
add esp, 4
push edi
mov edi, dword [esp + 0x4c]
mov ecx, edi
call fcn.005b93f0
push esi
mov ecx, edi
call fcn.004031f0
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0xc8
ret
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0xc8
ret