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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
call sub.msvcrt.dll__errno
mov edx, ebx
mov eax, dword [eax]
mov dword [esp + 0x80], eax
mov dword [esp + 0x28], edi
mov edi, 0x6000
and edi, dword [ebp + 8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], 0xfffffffd
mov word [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov word [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0xffffffff
lea eax, [edi + 0x200]
mov dword [esp + 0x7c], eax
lea esi, [esp + 0x28]
add edx, 2
xor ecx, ecx
mov ebx, edx
nop word cs:[eax + eax]
movzx eax, word [ebx - 2]
test eax, eax
je 0x413fab
cmp eax, 0x25
je 0x413450
lea eax, [ebx - 2]
test ecx, ecx
cmove ecx, eax
add ebx, 2
add edx, 2
jmp 0x413420
test ecx, ecx
je 0x413471
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
sub edx, ecx
sar edx, 1
dec edx
mov dword [esp], esi
call fcn.00413fe0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
movzx esi, word [ebx]
test si, si
je 0x413fa0
xor ecx, ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x54], eax
mov edi, ebx
xor eax, eax
nop word cs:[eax + eax]
mov dword [esp + 0x24], ecx
lea ecx, [edi + 2]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x84], esi
movzx ecx, si
mov dword [esp + 0x78], ecx
lea esi, [ecx - 0x20]
cmp esi, 0x5a
ja case.0x4134df.33
mov ecx, 3
mov edx, 4
jmp dword [esi*4 + 0x43b6a8]
xor ecx, ecx
jmp case.0x4134df.106
test eax, eax
jne 0x4135a0
or byte [esp + 0x2c], 0x40
jmp 0x4136b0
test eax, eax
jne 0x4135a0
or byte [esp + 0x2d], 8
jmp 0x4136b0
test eax, eax
jne 0x4135a0
or byte [esp + 0x2d], 0x10
mov dword [esp + 0x68], 0
call sub.msvcrt.dll_localeconv
mov eax, dword [eax + 4]
lea ecx, [esp + 0x68]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 8], 0x10
call fcn.00415e30
test eax, eax
mov esi, dword [esp + 0x24]
jle 0x413560
movzx ecx, word [esp + 0x20]
mov word [esp + 0x44], cx
mov dword [esp + 0x40], eax
xor edx, edx
mov ecx, esi
jmp case.0x4134df.106
mov esi, dword [esp + 0x54]
test esi, esi
jne 0x4136d9
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x54], 0
jmp case.0x4134df.106
test eax, eax
jne 0x4135a0
or byte [esp + 0x2d], 1
jmp 0x4136b0
test eax, eax
je 0x4136a4
mov edx, eax
mov ecx, dword [esp + 0x24]
jmp case.0x4134df.106
cmp eax, 1
jbe 0x4136fe
mov ecx, dword [esp + 0x24]
jmp case.0x4134df.106
test eax, eax
je 0x4136ab
cmp eax, 3
mov edi, dword [esp + 0x78]
ja 0x4137e7
lea edx, [edi - 0x30]
cmp dx, 9
ja 0x4137e7
cmp eax, 2
mov esi, eax
mov ecx, 3
cmove esi, ecx
test eax, eax
mov eax, 1
cmove esi, eax
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x41369a
mov eax, dword [ecx]
test eax, eax
js 0x4136b8
lea eax, [eax + eax*4]
lea eax, [edi + eax*2]
add eax, 0xffffffd0
mov dword [ecx], eax
jmp 0x4136ba
mov ecx, dword [esp + 0x18]
movzx esi, word [ecx]
cmp esi, 0x33
je 0x413719
cmp esi, 0x36
jne 0x413736
lea eax, [edi + 6]
xor ecx, ecx
cmp word [edi + 4], 0x34
sete cl
lea ecx, [ecx + ecx*2]
jmp 0x413666
or byte [esp + 0x2c], 4
mov ecx, dword [esp + 0x24]
jmp case.0x4134df.106
lea eax, [edi + 4]
xor ecx, ecx
cmp word [edi + 2], 0x68
sete cl
lea ecx, [ecx*4 + 1]
mov edx, dword [esp + 0x18]
cmove edx, eax
mov dword [esp + 0x18], edx
mov edx, 4
jmp case.0x4134df.106
lea eax, [edi + 4]
xor ecx, ecx
cmp word [edi + 2], 0x6c
sete cl
mov edx, dword [esp + 0x18]
cmove edx, eax
mov dword [esp + 0x18], edx
mov edx, 4
or ecx, 2
jmp case.0x4134df.106
mov dword [esp + 0x54], 0
jmp 0x4136ba
or byte [esp + 0x2d], 4
jmp 0x4136b0
or byte [esp + 0x2d], 2
xor edx, edx
mov ecx, dword [esp + 0x24]
jmp case.0x4134df.106
mov dword [ecx], edx
mov ecx, dword [esp + 0x24]
mov edx, esi
mov eax, edx
mov edx, dword [esp + 0x18]
movzx esi, word [edx]
mov edi, edx
test si, si
jne 0x4134b0
jmp 0x413fa2
test eax, 0xfffffffd
jne 0x413579
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
add edx, 4
mov dword [esp + 0x14], edx
mov dword [esi], ecx
test ecx, ecx
js 0x413743
mov edx, eax
jmp 0x413579
mov dword [esp + 0x34], 0
mov edx, 2
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
mov dword [esp + 0x54], eax
jmp case.0x4134df.106
lea eax, [edi + 6]
mov edx, ecx
xor ecx, ecx
cmp word [edi + 4], 0x32
sete cl
cmove edx, eax
mov dword [esp + 0x18], edx
add ecx, ecx
jmp 0x413671
xor ecx, ecx
mov eax, 4
mov edx, dword [esp + 0x18]
jmp 0x4136c9
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x413762
mov dword [esp + 0x34], 0xffffffff
mov edx, eax
mov dword [esp + 0x54], 0
jmp case.0x4134df.106
or byte [esp + 0x2d], 4
neg dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x54], 0
jmp case.0x4134df.106
and byte [esp + 0x2d], 0xfe
mov ecx, dword [esp + 0x24]
cmp ecx, 2
je 0x413818
cmp ecx, 3
mov edx, dword [esp + 0x14]
jne 0x413826
movsd xmm0, qword [edx]
add edx, 8
movsd qword [esp + 0x58], xmm0
jmp 0x413d4e
or byte [esp + 0x2c], 0x80
mov esi, dword [esp + 0x24]
cmp esi, 2
je 0x413bf2
cmp esi, 3
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
jne 0x413c13
mov ecx, dword [edx]
mov eax, dword [edx + 4]
add edx, 8
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x14], edx
jmp 0x413e43
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
lea esi, [esp + 0x28]
mov dword [esp], esi
mov ecx, 0x43b828
mov edx, 1
call fcn.00413fe0
mov edx, ebx
mov edi, dword [esp + 0x1c]
jmp 0x41340f
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
add edx, 4
jmp 0x413d42
mov eax, dword [edx]
add edx, 4
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
cmp ecx, 5
je 0x413d3f
cmp ecx, 1
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x28]
jne 0x413d56
movzx eax, ax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
jmp 0x413d56
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
lea esi, [esp + 0x28]
mov dword [esp], esi
mov ecx, 0x43b828
mov edx, 1
call fcn.00413fe0
jmp 0x413ecf
mov eax, dword [esp + 0x2c]
jmp 0x4138c9
mov dword [esp + 0x34], 0xffffffff
jmp 0x4139aa
mov eax, dword [esp + 0x2c]
jmp 0x4139db
mov eax, dword [esp + 0x2c]
jmp 0x413a00
mov eax, dword [esp + 0x2c]
jmp 0x413a25
mov eax, dword [esp + 0x2c]
or eax, 0x20
mov dword [esp + 0x2c], eax
test al, 4
mov ebx, dword [esp + 0x14]
jne 0x413b37
movsd xmm0, qword [ebx]
add ebx, 8
movsd qword [esp + 0xb0], xmm0
fld qword [esp + 0xb0]
fld st(0)
fstp xword [esp + 0x88]
fxam
wait
fnstsw ax
fstp st(0)
and eax, 0x4500
cmp eax, 0x100
mov dword [esp + 0x14], ebx
je 0x413b74
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
movsx ecx, word [esp + 0x90]
mov edi, ecx
sar edi, 0x1f
jns 0x413932
or byte [esp + 0x2c], 0x80
movsd qword [esp + 0xa8], xmm0
fld qword [esp + 0xa8]
fxam
wait
fnstsw ax
fstp st(0)
and eax, 0x4500
cmp eax, 0x500
jne 0x413da5
mov dword [esp + 0x34], 0xffffffff
test edi, edi
js 0x413edc
mov eax, dword [esp + 0x2c]
test eax, 0x100
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x28]
jne 0x413ef3
test al, 0x40
je 0x413d24
mov byte [esp + 0x20], 0x20
jmp 0x413ef8
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x24]
and eax, 0xfffffffe
cmp eax, 2
jne 0x413c6f
mov esi, dword [esp + 0x14]
movzx eax, word [esi]
mov word [esp + 0x68], ax
lea edi, [esp + 0x28]
mov dword [esp], edi
lea ecx, [esp + 0x68]
mov edx, 1
call fcn.00413fe0
jmp 0x413c8f
mov eax, dword [esp + 0x2c]
or eax, 0x20
mov dword [esp + 0x2c], eax
test al, 4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
jne 0x413ba4
fld qword [eax]
add eax, 8
jmp 0x413ba9
mov eax, dword [esp + 0x2c]
or eax, 0x20
mov dword [esp + 0x2c], eax
test al, 4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
jne 0x413bbe
fld qword [eax]
add eax, 8
jmp 0x413bc3
mov eax, dword [esp + 0x2c]
or eax, 0x20
mov dword [esp + 0x2c], eax
test al, 4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
jne 0x413bd8
fld qword [eax]
add eax, 8
jmp 0x413bdd
mov eax, dword [esp + 0x80]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
test eax, eax
mov edi, str._null_
cmovne edi, eax
mov eax, dword [esp + 0x34]
test eax, eax
js 0x413d88
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004160a0
jmp 0x413d90
mov eax, dword [esp + 0x24]
dec eax
cmp eax, 4
ja case.0x413a7f.2
jmp dword [eax*4 + 0x43b814]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [ecx], eax
jmp 0x413e9e
test eax, eax
mov edi, dword [esp + 0x1c]
jne 0x413ab5
cmp dword [esp + 0x2c], edi
jne 0x413ab5
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 8
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
movups xmm0, xmmword [esp + 0x58]
movups xmmword [esp], xmm0
lea edx, [esp + 0x28]
mov ecx, pe_nt_image_headers32
call fcn.00414760
jmp 0x413f5c
mov eax, dword [esp + 0x24]
and eax, 0xfffffffe
cmp eax, 2
jne 0x413c9d
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
test eax, eax
mov edi, 0x43b874
cmovne edi, eax
mov eax, dword [esp + 0x34]
test eax, eax
js 0x413c52
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004160e0
jmp 0x413c5a
fld xword [ebx]
add ebx, 0xc
fld st(0)
fstp xword [esp + 0x98]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
fld st(0)
fstp xword [esp + 0x68]
fxam
wait
fnstsw ax
and eax, 0x4500
cmp eax, 0x100
mov dword [esp + 0x14], ebx
jne 0x413cca
fstp st(0)
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, 0x100
mov edi, dword [esp + 0x1c]
jne 0x413d2d
test al, 0x40
lea esi, [esp + 0x28]
jne 0x413df1
lea edx, [esp + 0x20]
jmp 0x413dfa
fld xword [eax]
add eax, 0xc
mov dword [esp + 0x14], eax
fstp xword [esp]
lea ecx, [esp + 0x28]
call fcn.00414aa0
jmp 0x413f5c
fld xword [eax]
add eax, 0xc
mov dword [esp + 0x14], eax
fstp xword [esp]
lea ecx, [esp + 0x28]
call fcn.00414c40
jmp 0x413f5c
fld xword [eax]
add eax, 0xc
mov dword [esp + 0x14], eax
fstp xword [esp]
lea ecx, [esp + 0x28]
call fcn.00414e40
jmp 0x413f5c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x58], eax
sar eax, 0x1f
mov dword [esp + 0x5c], eax
mov edi, dword [esp + 0x1c]
jmp 0x413e43
mov ecx, dword [edx]
add edx, 4
mov eax, ecx
sar eax, 0x1f
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
cmp esi, 5
mov dword [esp + 0x14], edx
je 0x413e35
cmp esi, 1
lea esi, [esp + 0x28]
jne 0x413e47
movsx eax, cx
mov dword [esp + 0x58], eax
sar eax, 0x1f
mov dword [esp + 0x5c], eax
jmp 0x413e47
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
mov edx, eax
lea ebx, [esp + 0x28]
mov dword [esp], ebx
mov ecx, edi
call fcn.00413fe0
jmp 0x413ec6
mov esi, dword [esp + 0x14]
movzx eax, byte [esi]
mov byte [esp + 0x58], al
lea edi, [esp + 0x28]
mov dword [esp], edi
lea ecx, [esp + 0x58]
mov edx, 1
call fcn.004141b0
add esi, 4
mov dword [esp + 0x14], esi
mov esi, edi
jmp 0x413ecf
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
test eax, eax
mov edi, str._null_
cmovne edi, eax
mov eax, dword [esp + 0x34]
test eax, eax
js 0x413eae
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004160a0
jmp 0x413eb6
movsx esi, word [esp + 0xa0]
mov edi, esi
sar edi, 0x1f
jns 0x413cde
or byte [esp + 0x2c], 0x80
fxam
wait
fnstsw ax
fstp st(0)
and eax, 0x4500
cmp eax, 0x500
jne 0x413e10
mov dword [esp + 0x34], 0xffffffff
test edi, edi
js 0x413edc
mov eax, dword [esp + 0x2c]
test eax, 0x100
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x28]
jne 0x413ef3
test al, 0x40
jne 0x413988
lea edx, [esp + 0x20]
jmp 0x413efc
mov byte [esp + 0x20], 0x2b
lea edx, [esp + 0x21]
lea esi, [esp + 0x28]
jmp 0x413dfa
movzx eax, al
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x28]
mov dword [esp + 0x14], edx
cmp word [esp + 0x84], 0x75
je 0x413e52
movups xmm0, xmmword [esp + 0x58]
movups xmmword [esp], xmm0
lea edx, [esp + 0x28]
mov ecx, dword [esp + 0x78]
call fcn.00414760
mov edx, dword [esp + 0x18]
jmp 0x41340f
mov dword [esp], edi
call sub.msvcrt.dll_strlen
lea esi, [esp + 0x28]
mov dword [esp], esi
mov ecx, edi
mov edx, eax
call fcn.004141b0
jmp 0x413ecf
and ecx, 0x7fff
mov eax, ecx
dec eax
movzx eax, ax
cmp eax, 0x3bff
ja 0x413dd4
movzx eax, cx
mov ecx, 0x3c01
sub ecx, eax
shrd edx, esi, cl
shr esi, cl
xor edi, edi
test cl, 0x20
cmovne edx, esi
cmovne esi, edi
add ecx, eax
mov edi, dword [esp + 0x1c]
mov word [esp + 0x70], cx
test cx, cx
je 0x413f2c
add ecx, 0xffffc004
jmp 0x413f36
mov byte [esp + 0x20], 0x20
lea edx, [esp + 0x21]
and al, 0x20
mov ecx, eax
or cl, 0x4e
mov byte [edx], cl
or al, 0x41
mov byte [edx + 1], al
mov byte [edx + 2], cl
jmp 0x413f12
and si, 0x7fff
mov word [esp + 0x70], si
mov edi, dword [esp + 0x1c]
je 0x413f69
movzx eax, si
add eax, 0xffffc001
lea esi, [esp + 0x28]
jmp 0x413f75
movsx eax, cl
mov dword [esp + 0x58], eax
sar eax, 0x1f
mov dword [esp + 0x5c], eax
lea esi, [esp + 0x28]
sar eax, 0x1f
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
movups xmm0, xmmword [esp + 0x58]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x28]
call fcn.004143e0
mov edx, dword [esp + 0x18]
jmp 0x41340f
movzx eax, word [esp + 0x48]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov word [ecx], ax
jmp 0x413e9e
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [ecx], eax
sar eax, 0x1f
mov dword [ecx + 4], eax
jmp 0x413e9e
movzx eax, byte [esp + 0x48]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov byte [ecx], al
add edx, 4
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x1c]
jmp 0x413f5c
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov edx, eax
lea ebx, [esp + 0x28]
mov dword [esp], ebx
mov ecx, edi
call fcn.004141b0
add esi, 4
mov dword [esp + 0x14], esi
mov esi, ebx
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x41340f
mov byte [esp + 0x20], 0x2d
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x21]
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x28]
jmp 0x413efc
mov byte [esp + 0x20], 0x2b
lea edx, [esp + 0x21]
and al, 0x20
mov ecx, eax
or cl, 0x49
mov byte [edx], cl
mov ecx, eax
or cl, 0x4e
mov byte [edx + 1], cl
or al, 0x46
mov byte [edx + 2], al
lea ecx, [esp + 0x20]
sub edx, ecx
add edx, 3
mov dword [esp], esi
call fcn.004141b0
mov edx, dword [esp + 0x18]
jmp 0x41340f
mov cx, 0xfc05
mov eax, edx
or eax, esi
je 0x413f3b
mov word [esp + 0x70], cx
shrd edx, esi, 3
shr esi, 3
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edx
movups xmm0, xmmword [esp + 0x68]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x28]
call fcn.00415770
lea esi, [esp + 0x28]
mov edx, dword [esp + 0x18]
jmp 0x41340f
mov ax, 0xc002
or ecx, edx
lea esi, [esp + 0x28]
je 0x413f7a
mov word [esp + 0x70], ax
movups xmm0, xmmword [esp + 0x68]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x28]
call fcn.00415770
mov edx, dword [esp + 0x18]
jmp 0x41340f
mov edx, ebx
mov edi, dword [esp + 0x1c]
jmp 0x41340b
test ecx, ecx
je 0x413fcc
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
sub edx, ecx
sar edx, 1
dec edx
mov dword [esp], esi
call fcn.00413fe0
mov eax, dword [esp + 0x48]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret