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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10069b83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x44], edx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x10045a0b
xor al, al
jmp 0x100462cc
xor ecx, ecx
inc ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], ebx
jmp 0x10045a2b
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x98], ebx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x10045a1c
mov dword [esp + 0x10], ebx
jmp 0x10045a48
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x4c], 0xffffffff
inc dword [esp + 0x10]
cmp dword [esp + 0x10], ecx
jl 0x10045a38
mov eax, dword [esp + 0x98]
mov dword [esp + 0x98], eax
mov dword [esp + 0xc], ebx
cmp dword [esp + 0xc], 0xd
push 3
pop edi
jge 0x10045cac
mov eax, 0xc8748afa
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x24], 0xe780ca9f
mov dword [esp + 0x24], 0x214a9bac
mov dword [esp + 0x24], 0x9e95d1c5
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], 9
push ecx
mov dword [esp + 0x24], 0xc4b7c700
lea ecx, [esp + 0x6c]
mov dword [esp + 0x28], 0xffffffff
call fcn.10029e7b
mov dword [esp + 0x114], ebx
xor edx, edx
mov dword [esp + 0x34], 0xf230988a
inc edx
mov dword [esp + 0x10], ebx
jmp 0x10045b03
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
mov dword [eax + ecx*4], 0xfffffffe
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x10045af0
mov dword [esp + 0x10], ebx
jmp 0x10045b22
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0xfc], 0xefaadad2
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x10045b0f
dec dword [esp + 0x4c]
mov dword [esp + 0x20], ebx
jmp 0x10045c65
mov dword [esp + 0x64], 0x525036ff
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x24], edx
mov dword [esp + 0x24], 0x1d319d7f
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], ebx
jmp 0x10045b72
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xec], 0x6b93dced
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x10045b5f
mov ecx, dword [esp + 0x4c]
xor edx, edx
mov eax, dword [esp + 0xc8]
add ecx, 0xf1540ee1
cmp ecx, eax
mov eax, dword [esp + 0x68]
setne dl
mov dword [eax], edx
mov dword [esp + 0x14], 0xfffffffe
jmp 0x10045c53
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x3b]
mov dword [esp + 0x1c], 0xb566e66b
mov dword [esp + 0x50], ebx
mov dword [esp + 0xac], 0x5555d5df
mov byte [esp + 0x3b], bl
call fcn.10044a4c
mov eax, dword [esp + 0xd0]
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xf0]
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
mov eax, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
mov eax, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x98]
mov eax, dword [esp + 0x1c]
cmp eax, 0x80a71b66
setl cl
add ecx, dword [esp + 0x100]
sub ecx, 5
neg ecx
sbb ecx, ecx
inc ecx
mov dword [esp + 0x9c], ecx
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0xfffffff3
jge 0x10045ba4
inc dword [esp + 0x20]
push 1
pop edx
cmp dword [esp + 0x20], 2
jl 0x10045b35
or dword [esp + 0x114], 0xffffffff
cmp dword [esp + 0x68], 0
je 0x10045c95
push dword [esp + 0x68]
call fcn.1004fee7
pop ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
inc dword [esp + 0xc]
mov eax, 0xc8748afa
cmp dword [esp + 0xc], 0xd
push 1
pop ecx
jl 0x10045a73
mov eax, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x78]
mov dword [eax], ebx
call fcn.10029e7b
xor edx, edx
inc edx
mov dword [esp + 0x114], edx
mov dword [esp + 0xc], ebx
jmp 0x10045cdf
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x74]
mov dword [eax + ecx*4], 0xffff
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x10045ccc
call fcn.10044d1a
lea ecx, [esp + 0x74]
call fcn.1004518c
or dword [esp + 0x114], 0xffffffff
cmp dword [esp + 0x74], 0
je 0x10045d18
push dword [esp + 0x74]
call fcn.1004fee7
pop ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
cmp dword [esi + 0x14], 0x10
jb 0x10045d22
mov ecx, dword [esi]
jmp 0x10045d24
mov ecx, esi
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x44], ecx
jb 0x10045d32
mov edx, dword [esi]
jmp 0x10045d34
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
cmp ecx, eax
je 0x100462ca
mov dword [esp + 0x10], 0xb77278fa
mov dword [esp + 0x1c], 0x7609fa85
mov dword [esp + 0xc], ebx
jmp 0x10045d66
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x8c], ebx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edi
jl 0x10045d57
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x8c], ebx
je 0x10045d84
cmp dword [esp + 0x10], ebx
je 0x10045d84
xor eax, eax
inc eax
jmp 0x10045d86
mov eax, ebx
cmp eax, 0x93d0b548
mov eax, dword [esp + 0x90]
sbb ecx, ecx
xor edx, edx
neg ecx
cmp eax, ecx
setne dl
cmp edx, dword [esp + 0x90]
jg 0x10045db4
cmp dword [esp + 0x90], ebx
je 0x10045db4
xor eax, eax
inc eax
jmp 0x10045db6
mov eax, ebx
cmp eax, 0xffffffff
sbb eax, eax
neg eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x90]
sub ecx, eax
sub edx, ecx
neg edx
sbb edx, edx
xor eax, eax
inc edx
cmp edx, 0xe10e
setl al
imul eax, eax, 0x3494
test eax, eax
je 0x10045df5
mov eax, dword [esp + 0x94]
cmp dword [esp + 0x1c], ebx
je 0x10045e02
call fcn.100451f9
jmp 0x10045e23
mov dword [esp + 0x10], ebx
jmp 0x10045e1c
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10045e18
call fcn.10045973
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x17
jne 0x10045e08
mov eax, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x44]
mov al, byte [eax]
cmp al, 0x30
jl 0x10046076
cmp al, 0x39
jg 0x10046076
push 1
lea ecx, [esp + 0x5c]
call fcn.10029e7b
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x58]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x54], ebx
call fcn.1004598e
mov eax, dword [esp + 0x58]
mov dword [eax], ebx
mov dword [esp + 0xc], ebx
jmp 0x10045e86
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xd4], 0x8cd54673
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edi
jl 0x10045e73
mov eax, dword [esp + 0x40]
xor ecx, ecx
cmp eax, 9
mov eax, dword [esp + 0x58]
setne cl
xor edx, edx
imul ecx, ecx, 0xfff8
cmp dword [eax], ecx
mov eax, dword [esp + 0xd4]
setge dl
xor ecx, ecx
sub edx, 0x92e6
cmp edx, eax
sete cl
cmp ecx, 0x684593f6
jne 0x10045ed2
cmp dword [esp + 0xd8], ebx
jne 0x10045ed2
mov eax, ebx
jmp 0x10045ed5
xor eax, eax
inc eax
mov ecx, dword [esp + 0x40]
imul ecx, eax
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
mov eax, dword [esp + 0x40]
sub ecx, eax
xor eax, eax
cmp ecx, 0x68993dd6
setg al
sub eax, 0xc0a9
neg eax
sbb eax, eax
xor ecx, ecx
inc eax
imul eax, edx
imul edx, edx
cmp edx, eax
mov eax, dword [esp + 0x40]
setl cl
xor edx, edx
cmp ecx, eax
lea ecx, [esp + 0x54]
setle dl
inc edx
neg edx
sbb edx, edx
inc edx
mov dword [esp + 0x54], edx
lea edx, [esp + 0x40]
call fcn.100459ad
mov eax, dword [esp + 0x58]
inc dword [eax]
cmp dword [eax], 2
jl 0x10045e6d
push eax
call fcn.1004fee7
mov dword [esp], 0x1db7
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x60], ebx
push eax
push ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.10048772
mov dword [esp + 0x24], 1
add esp, 0x10
mov dword [esp + 0x1c], 0x971867b8
mov dword [esp + 0xc], ebx
jmp 0x10045f90
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xe0], 0xfffb
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edi
jl 0x10045f7d
mov dword [esp + 0x14], 2
cmp dword [esp + 0x14], ebx
jl 0x10046044
push 1
lea ecx, [esp + 0x84]
call fcn.10029e7b
xor edx, edx
mov dword [esp + 0xc], ebx
inc edx
jmp 0x10045fd1
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x80]
mov dword [eax + ecx*4], edx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x10045fbf
mov eax, dword [esp + 0x80]
mov dword [eax], 2
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov eax, dword [esp + eax*4 + 0xe0]
mov eax, dword [esp + 0x80]
mov eax, dword [eax]
mov eax, dword [esp + eax*4 + 0xe0]
cmp eax, 0xc370
setg cl
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x80]
jne 0x1004601e
dec dword [eax]
jns 0x10045fe4
push eax
call fcn.1004fee7
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
dec dword [esp + 0x18]
pop ecx
jns 0x10045fa8
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x1004606c
push ebx
push 0x1a9a
push 0x143c
push ebx
push 0xef6
push 0x1636
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x44]
inc ecx
jmp 0x10045d24
push 0x58d1
lea eax, [esp + 0x4c]
push eax
push 0x1a73
push ebx
call fcn.100462e1
add esp, 0x10
lea ecx, [esp + 0xa0]
push edi
call fcn.10029e7b
mov dword [esp + 0xc], ebx
jmp 0x100460b7
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0xa0]
mov dword [eax + ecx*4], 0xb3c692be
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edi
jl 0x100460a1
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x100460cd
call fcn.100459b2
lea ecx, [esp + 0x33]
mov byte [esp + 0x33], bl
call fcn.100459bb
cmp dword [esp + 0xa0], 0
je 0x10046106
push dword [esp + 0xa0]
call fcn.1004fee7
pop ecx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x10], 0xfffffff7
mov dword [esp + 0x2c], 0xfff7
mov dword [esp + 0x34], 0xfffffffc
mov dword [esp + 0x50], 0xfe9f4864
push 0xffffffffffffffea
mov dword [esp + 0x28], ebx
pop esi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x10], 2
jg 0x10045a04
mov edx, 0x3b6f
mov dword [esp + 0x20], 0xaa9ac70c
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0x1c], 0x70e7ad53
mov dword [esp + 0x20], ebx
jmp 0x100462ac
mov dword [esp + 0x28], 0xfffffffa
mov dword [esp + 0x14], 0xfffffff8
cmp dword [esp + 0x28], ebx
je 0x10046190
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0xb8]
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0xb8]
sub eax, 0x1fc65786
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x2c], ebx
je 0x1004623e
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], ebx
jmp 0x100461eb
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0xf4], ebx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 1
jl 0x100461dc
lea ecx, [esp + 0x3c]
call fcn.100459d0
mov dword [esp + 0x3c], 0xfffffffa
jmp 0x10046235
mov dword [esp + 0x34], 0xdf39281c
mov dword [esp + 0x34], 0x314b8123
mov dword [esp + 0x34], 0xfffffffe
mov dword [esp + 0x34], 0x9b95520
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
inc dword [esp + 0x3c]
cmp dword [esp + 0x3c], 0x29
jl 0x10046205
jmp 0x100462a8
mov dword [esp + 0xc], 0xb7bfbc35
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x24]
jne 0x1004626f
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 1
ja 0x10046267
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0xc], ebx
je 0x10046284
cmp dword [esp + 0x2c], ebx
je 0x10046284
xor ecx, ecx
inc ecx
jmp 0x10046286
mov ecx, ebx
xor eax, eax
cmp ecx, 0xffffffff
setl al
sub eax, dword [esp + 0x10]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
dec dword [esp + 0x20]
cmp dword [esp + 0x20], esi
jge 0x10046176
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jle 0x10046141
jmp 0x10045a04
mov al, 1
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret