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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004da24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
mov al, byte [esp + 0x13]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x48], al
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x88]
push ecx
push edx
mov dword [esp + 0xe0], 1
mov dword [esp + 0x90], ebx
call dword [0x1004f698]
mov eax, dword [esp + 0x88]
push eax
push ebx
push 0x410
call dword [0x1004f160]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x44], edi
jne 0x415824
mov esi, dword [ebp + 8]
mov cl, byte [esp + 0x48]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x1004f520]
lea ecx, [esp + 0x48]
mov eax, dword [edx]
push eax
push ebx
push ecx
mov ecx, esi
call dword [0x1004f528]
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x416341
mov al, byte [ecx - 1]
test al, al
je 0x4159be
cmp al, 0xff
je 0x4159be
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x1c]
cmp eax, ebx
jne 0x415854
cmp esi, ebx
je 0x41592f
cmp esi, 1
jne 0x415845
mov esi, 2
jmp 0x415934
cmp esi, 2
jne 0x4158b7
mov esi, 1
jmp 0x415934
cmp eax, 1
je 0x41592f
cmp eax, 2
jne 0x41586c
mov esi, 8
jmp 0x415934
cmp eax, 3
jne 0x4158a6
cmp esi, ebx
jne 0x41588e
mov edi, dword [ebp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x44]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x18], esi
jmp 0x4158af
cmp esi, 1
jne 0x4158b7
mov edx, dword [ebp + 0x18]
push edx
call dword [0x1004f5f8]
mov esi, eax
add esp, 4
shl esi, 1
jmp 0x4158ab
cmp eax, 4
jne 0x4158b7
mov dword [esp + 0x18], esi
cmp esi, ebx
jne 0x415938
push 0x1005d11c
call fcn.0042ea3d
add esp, 4
push edi
call dword [0x1004f194]
mov esi, dword [ebp + 8]
mov al, byte [esp + 0x48]
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x1004f520]
lea eax, [esp + 0x48]
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebx
push eax
call dword [0x1004f528]
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x416341
mov al, byte [ecx - 1]
test al, al
je 0x4159be
cmp al, 0xff
je 0x4159be
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 4
mov dword [esp + 0x18], esi
push esi
call dword [0x1004f5a4]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x78], eax
jne 0x4159df
push 0x1005d110
call fcn.0042ea3d
add esp, 4
push edi
call dword [0x1004f194]
mov esi, dword [ebp + 8]
mov cl, byte [esp + 0x48]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x1004f520]
lea ecx, [esp + 0x48]
mov eax, dword [edx]
push eax
push ebx
push ecx
mov ecx, esi
call dword [0x1004f528]
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
je 0x416341
mov al, byte [ecx - 1]
test al, al
je 0x4159be
cmp al, 0xff
je 0x4159be
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.00449c6f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov ebx, dword [0x1004f604]
push 0x1005cc7c
push edi
call ebx
add esp, 8
test eax, eax
je 0x415a0a
push 0x1005d10c
push edi
call ebx
add esp, 8
test eax, eax
je 0x415f31
push esi
push 0x1005d0ec
call fcn.0042ea3d
mov ebx, dword [0x1004f58c]
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x38]
lea eax, [esp + 0x68]
push edx
push eax
push 0x1005d0e4
push edi
call ebx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x78]
push ecx
push edx
push 0x1005d0cc
call fcn.0042ea3d
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x54]
add esp, 0x24
mov dword [esp + 0x14], edx
lea eax, [edx + esi]
cmp eax, ecx
mov dword [esp + 0x20], eax
jae 0x4162f9
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x90]
mov dword [esp + 0x8c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x8c]
push 0x1c
push eax
push edx
push ecx
call dword [0x1004f14c]
test eax, eax
jbe 0x415f1e
cmp dword [esp + 0x9c], 0x1000
jne 0x415ef2
cmp dword [esp + 0xa4], 0x40000
je 0x415ef2
test byte [esp + 0xa0], 0xcc
je 0x415ef2
mov edx, dword [esp + 0x98]
push 4
push 0x1000
push edx
push 0
mov dword [esp + 0x6c], 0
call dword [0x1004f16c]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x415ef2
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
mov eax, dword [esp + 0x98]
push eax
push ecx
call dword [0x1004f150]
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x5c]
cmp eax, ecx
jne 0x415ee0
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x20]
add ecx, eax
cmp edx, ecx
jae 0x415ee0
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
cmp ecx, edx
jae 0x415ee0
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
sub esi, eax
mov eax, dword [ebp + 0x20]
xor ecx, ecx
add esi, edi
cmp eax, ecx
jne 0x415c6c
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jne 0x415bc5
mov eax, dword [ebp + 0x14]
mov esi, dword [esi]
lea edx, [esp + 0x58]
mov dword [esp + 0x58], ecx
push edx
push 0x1005ce1c
push eax
mov dword [esp + 0x30], ecx
call ebx
mov edx, dword [ebp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push 0x1005ce1c
push edx
call ebx
mov eax, dword [esp + 0x70]
add esp, 0x18
cmp esi, eax
jl 0x415eac
cmp esi, dword [esp + 0x24]
jle 0x415dcd
jmp 0x415eb2
cmp eax, 1
jne 0x415c13
mov si, word [esi]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x14]
push eax
push 0x1005ce1c
push ecx
call ebx
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x4c]
push edx
push 0x1005ce1c
push eax
call ebx
add esp, 0x18
cmp si, word [esp + 0x38]
jl 0x415eac
cmp si, word [esp + 0x40]
jle 0x415dcd
jmp 0x415eb2
cmp eax, 2
jne 0x415eb2
mov edx, dword [ebp + 0x14]
mov bl, byte [esi]
mov esi, dword [0x1004f58c]
lea ecx, [esp + 0x13]
push ecx
push 0x1005ce1c
push edx
mov byte [esp + 0x1f], 0
mov byte [esp + 0x1e], 0
call esi
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x1e]
push eax
push 0x1005ce1c
push ecx
call esi
mov al, byte [esp + 0x2b]
add esp, 0x18
cmp bl, al
jb 0x415eac
cmp bl, byte [esp + 0x12]
jbe 0x415dcd
jmp 0x415eac
cmp eax, 1
jne 0x415cd5
mov ecx, dword [ebp + 0x14]
mov edx, dword [esi]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push 0x1005d0c8
push ecx
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], edx
call ebx
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x40]
push edx
push 0x1005d0c8
push eax
call ebx
fld dword [esp + 0x44]
fcomp dword [esp + 0x40]
add esp, 0x18
fnstsw ax
test ah, 1
jne 0x415eac
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x415dcd
jmp 0x415eb2
cmp eax, 2
jne 0x415d61
mov ecx, dword [esi]
mov edx, dword [esi + 4]
lea eax, [esp + 0x64]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x14]
push eax
push 0x1005d0c4
push ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x7c], edx
call ebx
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x88]
push edx
push 0x1005d0c4
push eax
call ebx
fld qword [esp + 0x84]
fcomp qword [esp + 0x7c]
add esp, 0x18
fnstsw ax
test ah, 1
jne 0x415eac
fld qword [esp + 0x6c]
fcomp qword [esp + 0x7c]
fnstsw ax
test ah, 0x41
jne 0x415dcd
jmp 0x415eb2
cmp eax, 3
jne 0x415db3
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jne 0x415d89
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x14]
push ecx
push edx
push esi
call dword [0x1004f5fc]
add esp, 0xc
test eax, eax
je 0x415dcd
jmp 0x415eb2
cmp eax, 1
jne 0x415eb2
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp + 0x18]
push eax
push esi
call dword [0x1004f600]
add esp, 0xc
test eax, eax
je 0x415dcd
jmp 0x415eb2
cmp eax, 4
jne 0x415eb2
mov ecx, dword [esp + 0x18]
mov edi, dword [ebp + 0x18]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x415eb2
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x415dda
mov eax, dword [0x1004f524]
cmp byte [eax], 0
je 0x415df3
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xb0]
push eax
push 0x1005d0c0
push ecx
jmp 0x415e05
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xb0]
push edx
push 0x1005d0bc
push eax
call dword [0x1004f668]
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x1004f520]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x50]
sub edx, ecx
cmp edx, esi
ja 0x415e39
call dword [0x1004f514]
test esi, esi
jbe 0x415e82
mov eax, dword [esp + 0x50]
push 0
lea ecx, [esp + 0x4c]
lea ebx, [eax + esi]
push ebx
call dword [0x1004f51c]
test al, al
je 0x415e82
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
push ebx
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
lea esi, [esp + 0xb4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c]
call dword [0x1004f508]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
push 0x1005d070
call fcn.0042ea3d
add esp, 0x14
mov ebx, dword [0x1004f58c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x98]
inc eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x8c]
inc ecx
add edx, eax
mov dword [esp + 0x20], ecx
cmp ecx, edx
jb 0x415b4d
mov eax, dword [esp + 0x3c]
push 0x8000
push 0
push eax
call dword [0x1004f174]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x98]
add edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], edx
lea eax, [edx + esi]
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x415a6c
jmp 0x4162f9
push eax
push 0x1005d060
call fcn.0042ea3d
add esp, 8
jmp 0x4162f9
mov ebx, dword [0x1004f58c]
mov dword [esp + 0x20], edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x20]
push 0x1005cc7c
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [0x1004f604]
add esp, 8
mov dword [esp + 0x5c], eax
test eax, eax
je 0x415f88
sub eax, esi
push eax
lea eax, [esp + 0x90]
push esi
push eax
call dword [0x1004f608]
add esp, 0xc
jmp 0x415fb0
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x90]
inc ecx
xor esi, esi
push 0x1005d05c
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], esi
call ebx
mov edi, dword [esp + 0x84]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
add esp, 0xc
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
push esi
push edi
push edx
push eax
call dword [0x1004f150]
cmp dword [esp + 0x3c], esi
jne 0x4162db
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x41610b
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x416060
mov edx, dword [ebp + 0x14]
mov edi, dword [edi]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], eax
push ecx
push 0x1005ce1c
push edx
mov dword [esp + 0x38], eax
call ebx
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x38]
push eax
push 0x1005ce1c
push ecx
call ebx
mov eax, dword [esp + 0x4c]
add esp, 0x18
cmp edi, eax
jl 0x4162ed
cmp edi, dword [esp + 0x2c]
jle 0x41626a
jmp 0x4162ed
cmp eax, 1
jne 0x4160b0
mov di, word [edi]
xor eax, eax
lea edx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x14]
push edx
push 0x1005ce1c
push eax
call ebx
mov edx, dword [ebp + 0x18]
lea ecx, [esp + 0x4c]
push ecx
push 0x1005ce1c
push edx
call ebx
add esp, 0x18
cmp di, word [esp + 0x28]
jl 0x4162ed
cmp di, word [esp + 0x40]
jle 0x41626a
jmp 0x4162ed
cmp eax, 2
jne 0x4162ed
mov edx, dword [ebp + 0x14]
mov al, byte [edi]
lea ecx, [esp + 0x12]
mov byte [esp + 0x12], 0
push ecx
push 0x1005ce1c
push edx
mov byte [esp + 0x1f], 0
mov byte [esp + 0x2b], al
call ebx
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x1f]
push eax
push 0x1005ce1c
push ecx
call ebx
mov al, byte [esp + 0x37]
mov cl, byte [esp + 0x2a]
add esp, 0x18
cmp al, cl
jb 0x4162ed
cmp al, byte [esp + 0x13]
jbe 0x41626a
jmp 0x4162ed
cmp eax, 1
jne 0x416174
mov ecx, dword [ebp + 0x14]
mov edx, dword [edi]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 0x1005d0c8
push ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x30], edx
call ebx
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x64]
push edx
push 0x1005d0c8
push eax
call ebx
fld dword [esp + 0x3c]
fcomp dword [esp + 0x50]
add esp, 0x18
fnstsw ax
test ah, 1
jne 0x4162ed
fld dword [esp + 0x24]
fcomp dword [esp + 0x58]
fnstsw ax
test ah, 0x41
jne 0x41626a
jmp 0x4162ed
cmp eax, 2
jne 0x416200
mov ecx, dword [edi]
mov edx, dword [edi + 4]
lea eax, [esp + 0x7c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x14]
push eax
push 0x1005d0c4
push ecx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x7c], edx
call ebx
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x70]
push edx
push 0x1005d0c4
push eax
call ebx
fld qword [esp + 0x84]
fcomp qword [esp + 0x94]
add esp, 0x18
fnstsw ax
test ah, 1
jne 0x4162ed
fld qword [esp + 0x6c]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 0x41
jne 0x41626a
jmp 0x4162ed
cmp eax, 3
jne 0x41624c
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x416224
mov ecx, dword [ebp + 0x14]
push esi
push ecx
push edi
call dword [0x1004f5fc]
add esp, 0xc
test eax, eax
je 0x41626a
jmp 0x4162ed
cmp eax, 1
jne 0x4162ed
mov eax, esi
cdq
sub eax, edx
mov edx, dword [ebp + 0x18]
sar eax, 1
push eax
push edx
push edi
call dword [0x1004f600]
add esp, 0xc
test eax, eax
je 0x41626a
jmp 0x4162ed
cmp eax, 4
jne 0x4162ed
mov ecx, dword [esp + 0x18]
mov edi, dword [ebp + 0x18]
mov esi, dword [esp + 0x78]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4162ed
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x416277
mov eax, dword [0x1004f524]
cmp byte [eax], 0
je 0x416290
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xb0]
push ecx
push 0x1005d0c0
push edx
jmp 0x4162a2
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xb0]
push eax
push 0x1005d0bc
push ecx
call dword [0x1004f668]
lea edi, [esp + 0xbc]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0xb0]
push ecx
push edx
lea ecx, [esp + 0x50]
call dword [0x1004f538]
mov eax, dword [esp + 0x14]
push eax
push 0x1005d048
jmp 0x4162e5
mov ecx, dword [esp + 0x14]
push ecx
push 0x1005d034
call fcn.0042ea3d
add esp, 8
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x415f3b
mov edx, dword [esp + 0x44]
push edx
call dword [0x1004f194]
mov eax, dword [esp + 0x78]
push eax
call dword [0x1004f5ac]
mov esi, dword [ebp + 8]
add esp, 4
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
call dword [0x1004f534]
push 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0xb0], 1
mov byte [esp + 0xdc], 0
call dword [0x1004f510]
mov ecx, dword [esp + 0xd0]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret