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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x90]
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x20], eax
movzx eax, byte [ebp + 0x109bf494]
mov dword [esp + 0x38], eax
shr eax, 1
mov esi, dword [esp + 0x80]
mov dword [esp + 0x3c], eax
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x40], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], ebx
lea edx, [esi + 0x3abf0]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x84]
cmp ebp, 3
jl 0x104548c3
push ebp
push ebx
push ecx
push edx
call fcn.1045a0a0
push eax
push ebp
mov dword [esp + 0x3c], eax
call fcn.1045a260
mov ecx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esp + 0x34]
add ecx, 0xe0
add ecx, edi
add esp, 0x18
mov dword [esp + 0x14], ecx
movzx eax, byte [eax + 0x109bf464]
movsx edx, byte [ecx + 0x107c]
dec eax
movsx ebx, al
mov cl, bl
sar edx, cl
mov ecx, dword [esp + 0x30]
and edx, 1
lea edx, [edx + eax*2]
mov eax, dword [edi + 0x1158]
movsx eax, byte [eax + ecx]
mov cl, bl
mov ebx, dword [esp + 0x30]
sar eax, cl
mov ecx, dword [esp + 0x24]
and eax, 1
mov byte [esp + 0x34], cl
lea eax, [eax + edx*2]
mov dword [esp + 0x48], eax
lea edx, [edi + 0xe0]
jmp 0x104548f2
xor al, al
push 0
push ebp
mov dword [esp + 0x2c], eax
mov byte [esp + 0x3c], al
call fcn.1045a260
mov ebp, eax
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x1c]
lea edx, [edi + 0xe0]
add esp, 8
add eax, edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], closesocket
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], closesocket
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], closesocket
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x6c], closesocket
mov byte [esp + 0x70], 0
mov dword [esp + 0x54], 0
cmp eax, dword [ecx + 0x1e4]
jge case.default.0x10454a21
cmp ebx, dword [ecx + 0x1e8]
jge case.default.0x10454a21
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x3ea14]
push 0
push edi
mov ecx, dword [ecx + 0x10]
push esi
mov eax, dword [eax + ecx*4]
add eax, ebx
mov dword [edx + 0x109c], eax
mov eax, dword [esp + 0x20]
add eax, 0x10a4
mov dword [edx + 0x10a0], eax
call fcn.10144f50
add esp, 0xc
mov dword [esp + 0x4c], 0
cmp dword [esi + 0x5d0c0], 0
setne al
cmp byte [esp + 0x24], 0
mov byte [edi + 0x1e43e], al
jne 0x10454a0b
cmp dword [esi + 0x5d094], 1
jne 0x10454a0b
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0x3adc8]
push ecx
push dword [esp + 0x4c]
push dword [esp + 0x24]
push ebx
push dword [esp + 0x28]
push eax
lea eax, [edi + 0xe0]
push eax
mov eax, dword [esp + 0x2c]
push edi
push dword [esp + 0x4c]
push eax
push eax
push edi
push esi
call fcn.1045d8c0
mov edx, eax
add esp, 0x34
mov dword [esp + 0x4c], edx
test edx, edx
je 0x10454a0b
mov al, 3
push 3
push dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x3c], al
call fcn.1045a260
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov byte [eax], cl
movzx ecx, cl
cmp ecx, 3
ja case.default.0x10454a21
jmp dword [ecx*4 + 0x10454eb4]
mov eax, dword [eax + 8]
test eax, eax
jne 0x10454a65
lea eax, [edi + 0x24994]
push eax
push dword [esp + 0x20]
push esi
call fcn.10080be0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov dword [ecx + 8], eax
test eax, eax
jne 0x10454a6e
push str.Failed_to_allocate_PICK_MODE_CONTEXT
push 2
push dword [edi + 0x1ba4]
call fcn.1006e850
add esp, 0xc
jmp 0x10454a6e
push eax
call fcn.10081450
add esp, 4
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
push dword [eax + 8]
lea eax, [esp + 0x54]
push dword [esp + 0x20]
push eax
push ebx
push ebp
push edi
push dword [esp + 0x28]
push esi
call fcn.1045ad00
mov eax, dword [esp + 0x40]
push 0
push dword [eax + 8]
push dword [esp + 0x5c]
push dword [esp + 0x48]
push 0
push ebx
push ebp
jmp 0x10454c94
add eax, 0x14
mov dword [esp + 0x28], 2
mov dword [esp + 0x14], eax
mov ebx, eax
nop word [eax + eax]
mov eax, dword [ebx]
test eax, eax
jne 0x10454af4
lea eax, [edi + 0x24994]
push eax
push ebp
push esi
call fcn.10080be0
add esp, 0xc
mov dword [ebx], eax
test eax, eax
jne 0x10454afd
push str.Failed_to_allocate_PICK_MODE_CONTEXT
push 2
push dword [edi + 0x1ba4]
call fcn.1006e850
add esp, 0xc
jmp 0x10454afd
push eax
call fcn.10081450
add esp, 4
add ebx, 4
sub dword [esp + 0x28], 1
jne 0x10454ac0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
push dword [eax]
lea eax, [esp + 0x54]
push ebp
push eax
push ebx
push dword [esp + 0x28]
push edi
push dword [esp + 0x28]
push esi
call fcn.1045ad00
mov eax, dword [esp + 0x34]
push 0
push dword [eax]
push 2
push ebp
push 0
push ebx
push dword [esp + 0x50]
push dword [esp + 0x68]
push edi
push dword [esp + 0x54]
push esi
call fcn.104587c0
mov ecx, dword [esp + 0x88]
add esp, 0x4c
add ecx, ebx
mov dword [esp + 0x38], ecx
cmp ecx, dword [esi + 0x3add8]
jge case.default.0x10454a21
cmp dword [esp + 0x1c], 3
jle case.default.0x10454a21
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
push dword [eax + 0x18]
lea eax, [esp + 0x54]
push ebp
push eax
push ecx
push ebx
push edi
push dword [esp + 0x28]
push esi
call fcn.1045ad00
mov eax, dword [esp + 0x40]
push 0
push dword [eax + 0x18]
push 2
push ebp
push 0
push dword [esp + 0x6c]
push ebx
jmp 0x10454c94
add eax, 0xc
mov dword [esp + 0x28], 2
mov dword [esp + 0x14], eax
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
jne 0x10454bea
lea eax, [edi + 0x24994]
push eax
push ebp
push esi
call fcn.10080be0
add esp, 0xc
mov dword [ebx], eax
test eax, eax
jne 0x10454bf3
push str.Failed_to_allocate_PICK_MODE_CONTEXT
push 2
push dword [edi + 0x1ba4]
call fcn.1006e850
add esp, 0xc
jmp 0x10454bf3
push eax
call fcn.10081450
add esp, 4
add ebx, 4
sub dword [esp + 0x28], 1
jne 0x10454bb6
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
push dword [eax]
lea eax, [esp + 0x54]
push ebp
push eax
push ebx
push dword [esp + 0x28]
push edi
push dword [esp + 0x28]
push esi
call fcn.1045ad00
mov eax, dword [esp + 0x34]
push 0
push dword [eax]
push 1
push ebp
push 0
push ebx
push dword [esp + 0x50]
push dword [esp + 0x68]
push edi
push dword [esp + 0x54]
push esi
call fcn.104587c0
mov ecx, dword [esp + 0x88]
add esp, 0x4c
add ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
cmp ecx, dword [esi + 0x3add4]
jge case.default.0x10454a21
cmp dword [esp + 0x1c], 3
jle case.default.0x10454a21
mov eax, dword [esp + 0x20]
push dword [eax + 0x10]
lea eax, [esp + 0x54]
push ebp
push eax
push ebx
push ecx
push edi
push dword [esp + 0x28]
push esi
call fcn.1045ad00
mov eax, dword [esp + 0x40]
push 0
push dword [eax + 0x10]
push 1
push ebp
push 0
push ebx
push dword [esp + 0x70]
push dword [esp + 0x68]
push edi
push dword [esp + 0x54]
push esi
call fcn.104587c0
add esp, 0x4c
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.105116c0
add esp, 0x6c
ret
add eax, 0x6c
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov ebx, eax
nop word [eax + eax]
cmp dword [ebx], 0
jne 0x10454cf9
push ebp
call fcn.10080bb0
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x10454cf9
push str.Failed_to_allocate_PC_TREE
push 2
push dword [edi + 0x1ba4]
call fcn.1006e850
add esp, 0xc
mov eax, dword [ebx]
add ebx, 4
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x7c], ecx
mov eax, ecx
inc eax
mov dword [esp + 0x24], eax
cmp eax, 4
jl 0x10454cd0
cmp dword [esi + 0x5d090], 0
je 0x10454d92
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
lea eax, [esi + 0x3abf0]
push ebx
push dword [esp + 0x20]
push eax
call fcn.1009f3c0
add esp, 0x10
test eax, eax
je 0x10454d92
lea eax, [esi + 0x3abf0]
push eax
call fcn.10080740
add esp, 4
test eax, eax
jne 0x10454d92
mov eax, dword [esp + 0x1c]
cmp eax, 0xc
jg 0x10454d92
push dword [esp + 0x48]
push ebp
push dword [esp + 0x3c]
push dword [esp + 0x2c]
push eax
push ebx
push dword [esp + 0x30]
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x34]
push edi
push esi
call fcn.1045d160
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.105116c0
add esp, 0x6c
ret
xor ebx, ebx
mov esi, dword [esp + 0x44]
mov edx, ebx
shr edx, 1
mov ecx, ebx
mov eax, edx
and ecx, 1
imul eax, dword [esp + 0x3c]
add eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x1e4]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x34], eax
jge 0x10454e15
mov esi, dword [esp + 0x44]
mov eax, ecx
imul eax, dword [esp + 0x3c]
add eax, dword [esp + 0x30]
cmp eax, dword [esi + 0x1e8]
mov esi, dword [esp + 0x40]
jge 0x10454e15
mov esi, dword [esp + 0x14]
push dword [esi]
mov esi, dword [esp + 0x48]
push ebp
push eax
push dword [esp + 0x40]
mov eax, dword [esi + 0x204]
push dword [esp + 0x3c]
mov esi, dword [esp + 0x54]
imul eax, edx
add eax, ecx
mov ecx, dword [esp + 0x3c]
imul eax, dword [esp + 0x50]
lea eax, [ecx + eax*4]
push eax
push dword [esp + 0x28]
push edi
push esi
call fcn.104547b0
add esp, 0x24
add dword [esp + 0x14], 4
inc ebx
cmp ebx, 4
jl 0x10454d94
cmp dword [esp + 0x4c], 0
jne case.default.0x10454a21
mov al, byte [esi + 0x3abf0]
test al, al
je case.default.0x10454a21
cmp al, 2
je case.default.0x10454a21
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x5328], 0
jne case.default.0x10454a21
cmp dword [esi + 0x5d18c], 0
je case.default.0x10454a21
mov eax, dword [esp + 0x48]
lea eax, [eax + eax*4]
lea ecx, [edi + eax*8]
mov eax, dword [ecx + 0x31e8]
cmp eax, dword [ecx + 0x31f4]
jge case.default.0x10454a21
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
add eax, edx
cmp eax, dword [esi + 0x3add4]
jg case.default.0x10454a21
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
add eax, ecx
cmp eax, dword [esi + 0x3add8]
jg case.default.0x10454a21
push dword [esp + 0x1c]
push ecx
push edx
push dword [esp + 0x34]
push ebx
push edi
push esi
call fcn.10457c90
add esp, 0x1c
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x6c
ret