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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
lea edi, [esp + 0x14]
lea esi, [esp + 0x10]
mov eax, 0x48a008
call fcn.0050d3e2
test al, al
jne 0x51216a
xor eax, eax
jmp 0x512732
mov edi, dword [esp + 0x10]
mov eax, dword [0x48a064]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [0x48a078]
mov eax, dword [eax + esi*4]
mov ebx, dword [eax]
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
mov al, byte [ebx + 0x70]
mov byte [esp + 0x23], al
xor eax, eax
cmp dword [ebp + 8], eax
mov dword [esp + 0xc], eax
jge 0x5121a5
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
and eax, 0x100
mov dword [esp + 0x14], eax
je 0x5121c4
mov ecx, esi
mov eax, edi
call fcn.0050df87
mov dword [esp + 0xc], 1
test word [ebp + 8], 0x800
je 0x5121e7
push 0x13
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [esp + 0x34]
call dword [0x46762c]
mov dword [esp + 0xc], 1
movzx eax, byte [esp + 0x23]
cmp eax, 0x14
jg 0x51251b
je 0x512441
cmp eax, 9
je 0x5123f7
cmp eax, 0xb
je 0x5123b2
cmp eax, 0xc
je 0x512163
cmp eax, 0xd
jle 0x512632
cmp eax, 0xf
jle 0x5122e5
cmp eax, 0x11
jne 0x512632
push 0xfffffffffffffff0
push dword [ebx + 0x28]
call dword [fcn.00467558]
mov cl, byte [ebp + 8]
mov eax, dword [ebx + 0xc]
and cl, 1
neg cl
mov dword [esp + 0x7c], eax
mov eax, 0x1000
mov dword [esp + 0x78], 8
mov dword [esp + 0x84], 0xf010
sbb ecx, ecx
and ecx, eax
add ecx, eax
test word [ebp + 8], 0x200
mov dword [esp + 0x80], ecx
je 0x512280
or dword [esp + 0x80], 0x10
mov esi, dword [fcn.00467588]
lea eax, [esp + 0x78]
push eax
push 0
push 0x113f
push dword [ebx + 0x28]
call esi
test word [ebp + 8], 0x400
je 0x5122ae
push dword [ebx + 0xc]
push 2
push 0x1102
push dword [ebx + 0x28]
call esi
cmp dword [esp + 0x14], 0
je 0x512549
mov edi, dword [ebx + 0x28]
mov ecx, 0x48a008
call fcn.0050d229
mov ecx, eax
mov eax, dword [esp + 0x10]
call fcn.0050df87
push dword [ebx + 0xc]
push 9
push 0x110b
push dword [ebx + 0x28]
call esi
jmp 0x512549
mov edi, dword [0x4674d8]
and dword [esp + 0xc], 0
lea eax, [esp + 0x4c]
push eax
push 0
push esi
push dword [ebx + 8]
mov dword [esp + 0x5c], 0x2c
mov dword [esp + 0x60], 1
call edi
test eax, eax
je 0x512163
mov al, byte [ebp + 8]
test al, 0x20
jne 0x512163
test al, al
jns 0x51232c
mov dword [esp + 0xc], 3
test al, 1
je 0x512335
or dword [esp + 0xc], 8
cmp dword [esp + 0x14], 0
je 0x512344
or dword [esp + 0xc], 0x80
test byte [esp + 0x58], 8
je 0x512354
test al, 4
jne 0x512354
or dword [esp + 0xc], 8
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push eax
push 0
push esi
push dword [ebx + 8]
call dword [0x4675bc]
test word [ebp + 8], 0x200
je 0x51237a
push 0
push esi
jmp 0x512398
lea eax, [esp + 0x4c]
push eax
push 0
push esi
push dword [ebx + 8]
call edi
test eax, eax
je 0x5123a1
test word [esp + 0x58], 0x1000
je 0x5123a1
push 0
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [0x4674b0]
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [0x467450]
jmp 0x512549
test byte [ebp + 8], 0x10
je 0x512632
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x148], 0
movzx eax, byte [ebx + 0x73]
je 0x5123d9
mov edx, dword [ecx + 0x144]
mov dword [ecx + 0x140], edx
push eax
mov edi, ecx
mov esi, 0x48a008
call fcn.00513766
movzx eax, byte [ebx + 0x73]
mov ecx, edi
mov dword [ecx + 0x144], eax
jmp 0x512549
mov eax, dword [ebp + 8]
and eax, 7
sub eax, 0
je 0x512421
dec eax
je 0x512413
push 0
push 0
push 0x467
jmp 0x51256d
push 0xffff0000
push 0xffffffffffffffff
push 0x465
jmp 0x51242a
push 0
push 0
push 0x466
push dword [esp + 0x28]
call dword [fcn.00467588]
test eax, eax
je 0x512632
jmp 0x512549
mov ebx, dword [ebx + 0x28]
mov edi, dword [fcn.00467588]
and dword [esp + 0x10], 0
lea eax, [esp + 0xa0]
push eax
push 0xffffffffffffffff
push 0x1053
push ebx
mov dword [esp + 0xb0], 1
mov dword [esp + 0xb8], esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x512163
and dword [esp + 0x2c], 0
push 0xffffffffffffffec
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 8
call dword [fcn.00467558]
test al, 4
mov esi, 0x2000
je 0x5124d7
test byte [ebp + 8], 5
je 0x5124d7
mov eax, dword [ebp + 8]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffff000
add eax, esi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x104c
push ebx
mov dword [esp + 0x44], 0xf000
call edi
mov dword [esp + 0x10], eax
test word [ebp + 8], 0x2100
je 0x512512
cmp dword [esp + 0x14], 0
je 0x5124eb
or dword [esp + 0x30], 0xffffffff
test dword [ebp + 8], esi
je 0x5124f5
and dword [esp + 0x30], 0
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x3c], 3
push 0x102b
push ebx
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
jmp 0x512732
sub eax, 0x16
je 0x5125ae
dec eax
dec eax
je 0x512579
dec eax
je 0x512556
dec eax
jne 0x512632
mov eax, dword [ebp + 8]
and eax, 7
je 0x512632
and eax, 3
push eax
mov eax, esi
call fcn.00510be9
mov dword [esp + 0xc], 1
jmp 0x512632
mov eax, dword [ebp + 8]
and eax, 7
je 0x512632
push 0
and eax, 3
push eax
push 0xf1
push dword [esp + 0x28]
call dword [fcn.00467588]
jmp 0x512549
test word [ebp + 8], 0x200
je 0x512632
mov eax, dword [esp + 0x18]
push 0
push esi
push 0x401
push dword [eax]
call dword [fcn.00467588]
call dword [fcn.00467568]
cmp eax, dword [ebx]
jne 0x512549
mov ecx, esi
mov eax, edi
call fcn.0050df87
jmp 0x512549
mov ecx, dword [0x48a088]
push 3
pop esi
cmp ecx, esi
jl 0x512632
mov eax, dword [0x48a078]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0
je 0x5125e3
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x18]
cmp edx, dword [edi + 4]
jne 0x5125e3
cmp byte [eax + 0x70], 3
jne 0x5125e3
mov eax, dword [eax]
cmp eax, dword [ebx + 0x28]
je 0x5125ea
inc esi
cmp esi, ecx
jle 0x5125bb
jmp 0x512632
mov al, byte [ebx + 0x72]
test byte [ebp + 8], al
jne 0x512632
test al, 0x10
je 0x512632
mov eax, dword [0x48a078]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
movsx ecx, word [eax + 0x6e]
push 0
push ecx
movsx ecx, word [eax + 0x6c]
push ecx
movsx ecx, word [eax + 0x6a]
push ecx
movsx ecx, word [eax + 0x68]
push ecx
push dword [eax]
call dword [fcn.004675d8]
push 0
push dword [ebx + 0x28]
push 0x469
push dword [esp + 0x28]
call dword [fcn.00467588]
mov eax, dword [ebp + 8]
and eax, 0x10f8
mov dword [esp + 0x10], eax
jle 0x51272e
mov edi, dword [0x467550]
xor eax, eax
test byte [esp + 0x10], 0x80
mov dword [esp + 0xc], 1
mov dword [esp + 0x14], eax
mov esi, 0xc0
je 0x512671
push eax
push dword [esp + 0x20]
mov dword [esp + 0x1c], esi
call edi
mov eax, esi
test byte [esp + 0x10], 0x40
je 0x512686
push 1
push dword [esp + 0x20]
mov dword [esp + 0x1c], esi
call edi
mov eax, esi
mov edx, dword [esp + 0x10]
and edx, 0x20
je 0x512692
add eax, 0x30
mov ecx, dword [esp + 0x10]
and ecx, 0x10
mov dword [esp + 0x14], ecx
je 0x5126a2
add eax, 0x30
test byte [esp + 0x10], 8
mov esi, 0x1008
je 0x5126b0
add eax, esi
test word [esp + 0x10], 0x1000
je 0x5126bb
add eax, esi
not al
and al, byte [ebx + 0x72]
or al, byte [esp + 0x10]
mov byte [ebx + 0x72], al
mov al, byte [ebx + 0x73]
cmp al, 0xff
je 0x5126e4
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x140]
movzx eax, al
cmp eax, ecx
je 0x5126e4
cmp ecx, 0xffffffff
jne 0x51272e
test edx, edx
mov esi, dword [0x4675fc]
je 0x5126f6
push 0
push dword [esp + 0x20]
call esi
cmp dword [esp + 0x14], 0
je 0x51271a
push 4
push dword [esp + 0x20]
call esi
cmp byte [esp + 0x23], 0x1a
jne 0x51271a
test byte [ebx + 0x72], 0x40
je 0x51271a
push 1
push dword [esp + 0x20]
call edi
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x31], 0
jne 0x51272e
push 1
push ebx
mov esi, eax
call fcn.0050d450
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4