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

Disassembly:
mov ecx, dword [0x9ec7ac]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x671041
sub esp, 0x58
mov eax, dword [0x9a4d04]
mov ecx, dword [esp + 0x74]
add ecx, eax
mov edx, dword [esp + 0x78]
cmp edx, ecx
jb 0x670ad3
mov eax, ecx
mov ebx, dword [esp + 0x70]
jmp 0x670b0b
mov dword [esp + 0x48], ecx
mov ebx, dword [esp + 0x70]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], ebx
mov ebp, dword [0x9a4d04]
sub eax, ebp
add eax, ebx
mov esi, dword [0x9a4d00]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.00468df0
movzx eax, byte [esp + 0x69]
test al, al
je 0x670b47
mov eax, 4
jmp 0x670b49
xor eax, eax
movzx edx, byte [esp + 0x68]
test dl, dl
je 0x670b55
or eax, 0x20
mov edx, dword [esp + 0x6c]
test edx, edx
jbe 0x670bb2
mov dword [esp + 0x24], 0
mov edx, dword [esp + 0x6c]
cmp edx, 0x100
jae 0x670b83
mov byte [esp + 0x24], dl
or eax, 1
mov ecx, 1
lea edx, [esp + 0x24]
jmp 0x670bb6
cmp edx, 0x10000
jae 0x670b9f
or eax, 2
nop
mov word [esp + 0x24], dx
mov ecx, 2
lea edx, [esp + 0x24]
jmp 0x670bb6
or eax, 3
nop
mov dword [esp + 0x24], edx
mov ecx, 4
lea edx, [esp + 0x24]
jmp 0x670bb6
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
cmp ebx, 0x100
xchg esi, ebx
setae bl
xchg esi, ebx
test ebp, ebp
xchg ebp, ebx
sete bl
xchg ebp, ebx
xchg edi, ebx
seta bl
xchg edi, ebx
and esi, ebp
or esi, edi
cmp ebx, 0x10100
setae dl
and edx, ebp
or edx, edi
test dl, dl
je 0x670bf5
inc esi
cmp ebx, 0xffffffff
setae dl
and edx, ebp
or edx, edi
test dl, dl
je 0x670c04
inc esi
xchg esi, eax
mov byte [esp + 0x23], al
xchg esi, eax
mov dword [esp + 0x28], ecx
mov edx, esi
shl esi, 6
mov ebx, dword [esp + 0x44]
inc ebx
or eax, esi
mov ebp, dword [esp + 0x48]
cmp ebp, ebx
jb 0x670c28
mov esi, dword [esp + 0x54]
jmp 0x670c72
mov byte [esp + 0x22], al
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov esi, ebx
mov ebx, eax
mov ebp, edx
movzx eax, byte [esp + 0x22]
movzx edx, byte [esp + 0x23]
mov byte [ebx + esi - 1], al
movzx edi, byte [esp + 0x68]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x670d11
mov edi, dword [esp + 0x64]
dec edi
cmp edi, 0x10000
jb 0x670c9c
shr edi, 0x10
mov eax, 0x10
jmp 0x670c9e
xor eax, eax
cmp edi, 0x100
jb 0x670cac
shr edi, 8
add eax, 8
cmp edi, 0x100
jae 0x671034
inc ebx
lea edx, [0x752f9f]
movzx edx, byte [edx + edi]
lea eax, [edx + eax - 0xa]
cmp ebp, ebx
jae 0x670d05
mov dword [esp + 0x48], eax
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
shl eax, 3
mov byte [ebx + esi - 1], al
movzx edx, byte [esp + 0x23]
mov eax, dword [esp + 0x6c]
test eax, eax
jbe 0x670d8a
lea eax, [ecx + ebx]
cmp ebp, eax
jae 0x670d56
mov dword [esp + 0x40], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x44], ebp
lea edx, [esi + ebx]
mov dword [esp], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00468df0
movzx edx, byte [esp + 0x23]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
cmp dl, 1
ja 0x670e67
test dl, dl
jne 0x670df1
movzx eax, byte [esp + 0x68]
test al, al
je 0x670dea
lea eax, [ebx + 1]
mov ecx, dword [esp + 0x5c]
cmp ebp, eax
jae 0x670de1
mov dword [esp + 0x3c], ecx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov byte [eax + esi - 1], cl
jmp 0x670ff0
mov eax, ebx
jmp 0x670ff0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
lea edx, [ebx + 2]
add eax, 0xffffff00
mov dword [esp + 0x5c], eax
adc ecx, 0xffffffff
mov dword [esp + 0x60], ecx
mov ebx, eax
shr eax, 8
shl ecx, 0x18
or eax, ecx
cmp ebp, edx
jae 0x670e58
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebx
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 2
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov byte [edx + esi - 2], bl
mov byte [edx + esi - 1], al
mov eax, edx
jmp 0x670ff0
mov dword [esp + 0x50], esi
cmp dl, 2
jne 0x670f2c
lea eax, [ebx + 4]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x38], edx
mov ebx, ecx
shr ecx, 8
mov edi, edx
shl edx, 0x18
shl edi, 0x10
shr ebx, 0x10
mov esi, dword [esp + 0x38]
shl esi, 8
mov eax, dword [esp + 0x3c]
shr eax, 0x18
or ecx, edx
or edi, ebx
or esi, eax
mov eax, dword [esp + 0x48]
cmp ebp, eax
jb 0x670ebd
mov edx, dword [esp + 0x50]
jmp 0x670f09
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 4
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov edx, esi
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov byte [eax + edx - 4], bl
mov byte [eax + edx - 3], cl
xchg edi, ebx
mov byte [eax + edx - 2], bl
xchg edi, ebx
xchg esi, ebx
mov byte [eax + edx - 1], bl
xchg esi, ebx
mov esi, edx
jmp 0x670ff0
cmp dl, 3
jne 0x67101c
lea eax, [ebx + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov edx, ecx
shr ecx, 8
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
mov edi, dword [esp + 0x60]
mov dword [esp + 0x38], edi
shl edi, 0x18
mov esi, dword [esp + 0x38]
shl esi, 0x10
mov eax, dword [esp + 0x38]
shl eax, 8
or ecx, edi
or esi, edx
or eax, ebx
mov edx, dword [esp + 0x48]
cmp ebp, edx
jb 0x670f7e
mov ebx, dword [esp + 0x50]
jmp 0x670fcc
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 8
lea eax, [0x6e4500]
mov dword [esp + 0x10], eax
call fcn.0044e230
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov edx, eax
mov ebx, esi
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
xchg edi, eax
mov byte [edx + ebx - 8], al
xchg edi, eax
mov byte [edx + ebx - 7], cl
xchg esi, eax
mov byte [edx + ebx - 6], al
xchg esi, eax
mov byte [edx + ebx - 5], al
mov ecx, dword [esp + 0x38]
mov dword [edx + ebx - 4], ecx
mov eax, edx
mov esi, ebx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x58
ret
lea eax, [0x6e41c0]
mov dword [esp], eax
lea eax, [0x7aabe0]
mov dword [esp + 4], eax
call fcn.004386b0
mov eax, edi
mov ecx, 0x100
call fcn.004684d0
nop
call fcn.00467050
jmp fcn.00670aa0