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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, ecx
mov eax, edx
push esi
push edi
mov dword [esp + 0x18], eax
mov edi, dword [ebx]
mov cl, byte [ebx + 0x92]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], edi
test dword [edi + 0x1c], 0x4000
mov byte [esp + 0x1f], cl
je 0x4618b0
mov edx, dword [eax + 0x48]
mov esi, 0xfff0bdc0
mov dword [esp + 0x34], esi
test edx, edx
je 0x4611e3
mov ecx, dword [edi + 0x14]
xor esi, esi
mov dword [esp + 0x34], esi
test ecx, ecx
jle 0x4611e3
mov eax, dword [edi + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x4611df
inc esi
add eax, 0x10
cmp esi, ecx
jl 0x4611d3
mov dword [esp + 0x34], esi
mov eax, dword [edi + 0x10]
add esi, esi
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + esi*8]
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], esi
test esi, esi
je 0x461639
jmp 0x461213
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 0
test eax, eax
je 0x461295
mov ecx, dword [ecx]
mov eax, dword [esi + 8]
test ecx, ecx
jne 0x46123e
neg eax
sbb eax, eax
jmp 0x461249
test eax, eax
je 0x46124d
mov edx, eax
call fcn.00408ab0
test eax, eax
je 0x461295
mov eax, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x28], ecx
test ecx, ecx
jle 0x461288
lea ecx, [eax + 0x24]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
cmp dword [eax + edx*4], 0
jge 0x461291
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x28]
cmp edx, eax
jne 0x46127e
cmp dword [ebp + 0x14], 0
jne 0x461291
inc esi
add ecx, 8
cmp esi, dword [esp + 0x28]
jl 0x461261
mov esi, dword [esp + 0x14]
jmp 0x461626
mov esi, dword [esp + 0x14]
cmp byte [ebx + 0x92], 0
mov eax, dword [esi + 8]
push dword [esp + 0x3c]
je 0x4612b3
mov edx, eax
mov ecx, edi
call fcn.0044fad0
add esp, 4
jmp 0x4612c0
push eax
xor edx, edx
mov ecx, ebx
call fcn.0044fc00
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4614d7
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
mov edx, ebx
push eax
push esi
call fcn.0045f500
add esp, 0xc
test eax, eax
jne 0x4614d7
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4612fb
mov ecx, eax
mov dword [esp + 0x28], eax
jmp 0x46130a
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x14]
xor esi, esi
cmp dword [eax + 0x14], esi
jle 0x46137e
mov eax, dword [esp + 0x18]
movsx eax, word [eax + 0x28]
cmp dword [ecx + esi*4], eax
jne 0x461329
mov dword [ecx + esi*4], 0xffffffff
cmp dword [edi + 0x130], 0
je 0x461374
mov eax, dword [esp + 0x30]
test eax, eax
je 0x461343
mov eax, dword [eax + 4]
movzx eax, word [eax + esi*2]
jmp 0x461347
movzx eax, word [ebx + 0x28]
push dword [esp + 0x34]
mov edx, dword [ebx]
movsx ecx, ax
mov eax, dword [ebx + 4]
add ecx, ecx
push dword [eax + ecx*8]
mov ecx, dword [esp + 0x18]
call fcn.0044eff0
xor ecx, ecx
add esp, 8
cmp eax, 2
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, dword [eax + 0x14]
jl 0x461315
push dword [ebx]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push 0
push dword [ebx + 0x1c]
call fcn.0044f160
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x14]
inc dword [ecx + 0x28]
test eax, eax
je 0x4613c8
push dword [esp + 0x24]
mov edx, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
push dword [esp + 0x34]
push esi
push dword [esp + 0x44]
push ebx
call fcn.0045f8a0
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x46141e
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov eax, dword [ecx + 0x1cc]
test eax, eax
je 0x4613f9
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
jne 0x4613ee
cmp byte [esi + 0x19], 7
je 0x46141e
cmp eax, dword [esi + 0x20]
jne 0x4613f9
cmp byte [esi + 0x1a], 7
je 0x46141e
push dword [esp + 0x24]
push 1
push edx
push dword [esp + 0x34]
mov edx, dword [esp + 0x44]
push esi
push dword [esp + 0x44]
push ebx
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
call fcn.0045f8a0
add esp, 0x1c
jmp 0x461422
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x461626
cmp dword [edi + 0x1d0], 0
je 0x461445
mov edx, ecx
mov ecx, edi
call fcn.00405430
jmp 0x461626
cmp ecx, dword [edi + 0x128]
jb 0x461468
cmp ecx, dword [edi + 0x12c]
jae 0x461468
mov eax, dword [edi + 0x124]
mov dword [ecx], eax
mov dword [edi + 0x124], ecx
jmp 0x461626
cmp dword [0x55a418], 0
je 0x4614c8
mov eax, dword [0x560268]
test eax, eax
je 0x461488
push eax
call dword [0x55a474]
mov ecx, dword [esp + 0x3c]
add esp, 4
push ecx
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
mov eax, dword [esp + 0x38]
dec dword [0x560094]
push eax
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x461626
push eax
call dword [0x55a47c]
add esp, 4
jmp 0x461626
push ecx
call dword [0x55a448]
add esp, 4
jmp 0x461626
cmp byte [esp + 0x1f], 0
je 0x4618b0
cmp byte [edi + 0x49], 0
jne 0x4618b0
test ebx, ebx
jne 0x461622
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 8]
mov dword [esp + 0x28], esi
test esi, esi
jne 0x46151f
cmp dword [ecx + 0x78], esi
jne 0x461514
mov eax, dword [ecx]
test byte [eax + 0x44], 8
jne 0x461514
mov byte [ecx + 0x17], 1
call fcn.00429580
mov esi, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [esi + 0x88]
inc ecx
mov edx, dword [eax + 0x14]
add ecx, edx
mov dword [esp + 0x30], ecx
lea ecx, [esi + 0xc]
mov dword [esp + 0x24], ecx
test edx, edx
jle 0x4615bd
lea edi, [eax + 0x24]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
inc ecx
add edx, ecx
mov ecx, dword [esi + 0x88]
mov eax, dword [eax]
cmp dword [eax + 0x30], ecx
jg 0x461574
push 0
push dword [esp + 0x34]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.00429830
add esp, 0xc
jmp 0x4615aa
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
inc ebx
add edi, 8
cmp ebx, dword [eax + 0x14]
jl 0x461543
mov edi, dword [esp + 0x20]
jmp 0x4615c1
mov dword [esp + 0x24], ecx
movzx edx, byte [eax + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x88]
mov eax, dword [eax]
cmp dword [eax + 0x30], ecx
jg 0x4615ec
push 0
push 0xffffffffffffffff
push edx
mov edx, 0x91
mov ecx, esi
call fcn.00429830
add esp, 0xc
jmp 0x46161e
lea eax, [ecx + 1]
mov dword [esi + 0x88], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x58]
mov dword [eax + ecx*4], 0x91
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0xffffffff
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x461210
mov esi, dword [esp + 0x18]
push 0
mov ecx, dword [esi + 0x48]
mov edx, dword [esi]
add ecx, 0x38
call fcn.00409f50
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4618b0
nop word [eax + eax]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0
test eax, eax
je 0x46168f
push dword [ebp + 0x14]
mov edx, ebx
mov ecx, esi
push eax
call fcn.00461070
add esp, 8
test eax, eax
je 0x4618a5
cmp byte [ebx + 0x18], 0
jne 0x4616b2
test dword [edi + 0x1c], 0x80000
jne 0x4616b2
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x78], 0
jne 0x4616b2
cmp byte [edx + 0x14], 0
je 0x4618a5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
mov edx, esi
push eax
push ebx
call fcn.0045f500
add esp, 0xc
test eax, eax
je 0x4616e9
cmp byte [esp + 0x1f], 0
je 0x4618b0
cmp byte [edi + 0x49], 0
jne 0x4618b0
jmp 0x4618a5
push 0
push 0x58
mov ecx, edi
call fcn.004058c0
mov edi, dword [esp + 0x44]
mov esi, eax
add esp, 8
test esi, esi
je 0x461801
push 0x50
lea ecx, [esi + 8]
mov dword [esi + 4], 1
push 0
push ecx
mov dword [esi], 1
call fcn.004f7f30
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esi + 0x38], 0xffffffff
cmp byte [eax + 0x49], 0
je 0x461743
mov edx, esi
mov esi, eax
mov ecx, esi
call fcn.00457490
jmp 0x461805
mov eax, dword [esi]
lea eax, [eax + eax*4]
add eax, eax
mov dword [esi + eax*8 - 0x40], 0
mov dword [esi + eax*8 - 0x44], 0
mov ecx, dword [ebx]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x18], ecx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [esi + 0x10], eax
inc dword [ecx + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x38], eax
inc dword [ecx + 0x28]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46179d
push 0xffffffffffffffff
push eax
push edi
push ebx
push edx
push dword [esp + 0x2c]
mov edx, esi
call fcn.00460430
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov edx, dword [esp + 0x24]
cmp dword [ebp + 8], 0
je 0x4617eb
push 1
push dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x10], eax
push edi
setne al
push ebx
push edx
push dword [esp + 0x2c]
mov al, byte [eax + ebx + 0x19]
mov edx, esi
mov byte [esp + 0x47], al
call fcn.00460430
add esp, 0x18
cmp byte [ebx + 0x18], 0
jne 0x4617eb
mov al, byte [esp + 0x2f]
cmp al, 9
je 0x4617eb
cmp al, 7
je 0x4617eb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov dword [esi + 0x10], 0
mov edx, esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.00457490
jmp 0x461805
mov esi, dword [esp + 0x20]
test edi, edi
je 0x46189d
cmp dword [esi + 0x1d0], 0
je 0x461825
mov edx, edi
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.00405430
jmp 0x4618a1
cmp edi, dword [esi + 0x128]
jb 0x461845
cmp edi, dword [esi + 0x12c]
jae 0x461845
mov eax, dword [esi + 0x124]
mov dword [edi], eax
mov dword [esi + 0x124], edi
jmp 0x46189d
cmp dword [0x55a418], 0
je 0x461893
mov eax, dword [0x560268]
test eax, eax
je 0x461861
push eax
call dword [0x55a474]
add esp, 4
push edi
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push edi
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x46189d
push eax
call dword [0x55a47c]
jmp 0x46189a
push edi
call dword [0x55a448]
add esp, 4
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x461660
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret