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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60b10a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [esp + 0x40], esi
mov eax, dword [ebx + 4]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, esi
je 0x514223
cmp dword [eax + 8], esi
je 0x514223
cmp byte [ebp + 0x14], 0
je 0x5134f5
mov eax, dword [ebx + 0x34]
cmp eax, esi
je 0x5134f5
call fcn.0050a488
push dword [ebx + 4]
lea eax, [esp + 0x14]
push eax
call fcn.004c9551
push ecx
push ecx
mov ecx, esp
lea eax, [ebx + 0xe8]
mov dword [esp + 0x64], esp
push ecx
mov dword [esp + 0x108], esi
mov dword [esp + 0x64], eax
call fcn.00507e58
lea ecx, [esp + 0x18]
call fcn.004c993f
mov byte [esp + 0xf], 1
mov byte [esp + 0x33], 1
cmp dword [ebx + 0x144], esi
je 0x513545
mov esi, dword [esp + 0x58]
call fcn.00516a96
mov esi, ebx
call fcn.00514273
mov dword [esp + 0x5c], eax
cmp edi, 0xd
ja case.default.0x513559
jmp dword [edi*4 + 0x51423b]
cmp byte [ebp + 0x10], 0
mov byte [esp + 0x33], 0
jne 0x513592
cmp dword [ebx + 0x144], 0
je 0x51359f
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x54], esp
push eax
mov ecx, ebx
call fcn.00516d68
lea ecx, [esp + 0x18]
call fcn.004c993f
jmp case.default.0x513559
cmp dword [ebx + 0x144], 2
je 0x513d80
lea ecx, [esp + 0x10]
call fcn.005132e7
jmp case.default.0x513559
cmp byte [ebp + 0x10], 0
jne 0x5135ce
cmp dword [ebx + 0x144], 0
je 0x5135db
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x54], esp
push eax
mov ecx, ebx
call fcn.00516d4b
jmp 0x513584
cmp dword [ebx + 0x144], 2
je 0x513d80
lea ecx, [esp + 0x10]
call fcn.00513303
jmp case.default.0x513559
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov byte [esp + 0xfc], 1
call fcn.004c9dee
neg al
sbb al, al
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0x80]
inc al
xor esi, esi
mov byte [esp + 0xe], al
cmp ecx, esi
je 0x513632
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x80], esi
cmp byte [esp + 0xe], 0
je 0x513652
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0051b5f8
mov ecx, dword [esp + 0x28]
cmp ecx, esi
jmp 0x514045
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
je case.default.0x513559
jmp 0x5136f9
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov byte [esp + 0xfc], 2
call fcn.004c9dee
neg al
sbb al, al
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0xa8]
inc al
mov byte [esp + 0xe], al
cmp ecx, esi
je 0x5136af
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xa8], esi
cmp byte [esp + 0xe], 0
jne case.default.0x513559
lea ecx, [esp + 0x10]
call fcn.0051b7e4
movzx eax, ax
push eax
call fcn.00518d44
pop ecx
test al, al
je 0x51370a
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9982
mov ecx, dword [esp + 0xc8]
cmp ecx, esi
je 0x5136f9
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xc8], esi
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
jne 0x513668
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
je case.default.0x513559
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov byte [esp + 0xfc], 3
call fcn.004c9dee
neg al
sbb al, al
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0xd8]
inc al
mov byte [esp + 0xe], al
cmp ecx, esi
je 0x513762
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xd8], esi
cmp byte [esp + 0xe], 0
jne case.default.0x513559
lea ecx, [esp + 0x10]
call fcn.0051b7e4
movzx eax, ax
push eax
call fcn.00518d44
pop ecx
test al, al
jne case.default.0x513559
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9982
mov ecx, dword [esp + 0xe8]
cmp ecx, esi
je 0x5137b0
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xe8], esi
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
jne 0x51371b
jmp case.default.0x513559
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov byte [esp + 0xfc], 4
call fcn.004c9dee
neg al
sbb al, al
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0x70]
inc al
xor esi, esi
mov byte [esp + 0xe], al
cmp ecx, esi
je 0x513806
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x70], esi
cmp byte [esp + 0xe], 0
je 0x513820
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0051b673
jmp 0x513647
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
je case.default.0x513559
jmp 0x5138ed
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x14]
call fcn.004c99f5
mov byte [esp + 0xfc], 5
call fcn.004c9e39
neg al
sbb al, al
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0xd0]
inc al
mov byte [esp + 0xe], al
cmp ecx, esi
je 0x51387d
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xd0], esi
cmp byte [esp + 0xe], 0
jne case.default.0x513559
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov byte [esp + 0xfc], 6
call fcn.004c9dee
neg al
sbb al, al
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0x90]
inc al
mov byte [esp + 0xe], al
cmp ecx, esi
je 0x5138cf
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x90], esi
cmp byte [esp + 0xe], 0
lea ecx, [esp + 0x10]
jne 0x513919
call fcn.0051b7e4
movzx eax, ax
push eax
call fcn.00518d44
pop ecx
test al, al
jne 0x5138fe
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
jne 0x513836
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov byte [esp + 0xfc], 7
jmp 0x5139ff
lea eax, [esp + 0x28]
push eax
call fcn.0051b769
jmp 0x513647
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x14]
call fcn.004c99f5
mov ecx, dword [esp + 0xc0]
test ecx, ecx
je 0x513951
mov eax, dword [ecx]
call dword [eax + 4]
and dword [esp + 0xc0], 0
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov byte [esp + 0xfc], 8
call fcn.004c9dee
mov bl, al
neg bl
sbb bl, bl
mov byte [esp + 0xfc], 7
mov ecx, dword [esp + 0xa0]
inc bl
test ecx, ecx
je 0x513997
mov eax, dword [ecx]
call dword [eax + 4]
and dword [esp + 0xa0], 0
test bl, bl
jne 0x513a10
lea ecx, [esp + 0x10]
call fcn.0051b7e4
movzx eax, ax
push eax
call fcn.00518d44
pop ecx
test al, al
je 0x513a10
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov ebx, eax
mov byte [esp + 0xfc], 9
mov esi, dword [ebx]
lea edi, [esp + 0x50]
call fcn.0051f3f3
mov eax, dword [ebx + 4]
mov byte [esp + 0xfc], 7
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x54], eax
test ecx, ecx
je 0x5139ff
mov eax, dword [ecx]
call dword [eax + 4]
and dword [esp + 0xe0], 0
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
jne 0x513928
push ecx
push ecx
mov dword [esp + 0x54], esp
lea ebx, [esp + 0x58]
mov eax, esp
call fcn.004c9bfd
lea ecx, [esp + 0x18]
call fcn.004c993f
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x513a3f
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
je 0x514212
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x5c]
call fcn.00507e58
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x100], 0xe
call fcn.004c9a8b
lea eax, [esp + 0x44]
mov byte [esp + 0xfc], 0xf
call fcn.00503c85
test al, al
jne 0x513aec
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.0051b6ee
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x513aa7
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov dword [esp + 0x4c], eax
mov byte [esp + 0xfc], 0x10
mov esi, dword [eax]
lea edi, [esp + 0x44]
call fcn.0051f3f3
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov byte [esp + 0xfc], 0xf
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x513aec
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x44]
call fcn.004c9e39
test al, al
jne 0x51407d
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.004c98de
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x513b18
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x10]
call fcn.00513303
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
jne 0x51407d
mov byte [esp + 0xfc], 0xe
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x513b47
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x514212
jmp 0x51420d
lea esi, [esp + 0x60]
lea eax, [esp + 0x10]
call fcn.0050eea9
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov ecx, dword [esp + 0xb0]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
test ecx, ecx
je 0x513b9c
mov eax, dword [ecx]
call dword [eax + 4]
and dword [esp + 0xb0], 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov byte [esp + 0xfc], 0xa
jmp 0x513cd9
mov ecx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x30], esp
sub esp, 0x10
mov dword [eax + 0xc], ecx
mov esi, esp
lea eax, [esp + 0x30]
mov dword [esp + 0x40], esp
call fcn.0050eea9
call fcn.0042a4bb
add esp, 0x20
test al, al
jne 0x513c18
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov ecx, dword [esp + 0x4c]
or dword [esp + 0x44], 1
cmp ecx, dword [eax]
jne 0x513c18
xor bl, bl
jmp 0x513c1a
mov bl, 1
test byte [esp + 0x44], 1
je 0x513c38
mov ecx, dword [esp + 0x78]
and dword [esp + 0x44], 0xfffffffe
test ecx, ecx
je 0x513c38
mov eax, dword [ecx]
call dword [eax + 4]
and dword [esp + 0x78], 0
test bl, bl
jne 0x513cea
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
mov ebx, eax
mov byte [esp + 0xfc], 0xb
mov esi, dword [ebx]
lea edi, [esp + 0x50]
call fcn.0051f3f3
mov eax, dword [ebx + 4]
mov byte [esp + 0xfc], 0xa
mov ecx, dword [esp + 0x88]
xor esi, esi
mov dword [esp + 0x54], eax
cmp ecx, esi
je 0x513c8e
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x88], esi
cmp dword [ebp + 0xc], 4
lea ecx, [esp + 0x10]
jne 0x513cbe
lea eax, [esp + 0x98]
push eax
call fcn.0051b769
mov ecx, dword [esp + 0x98]
cmp ecx, esi
je 0x513cd9
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x98], esi
jmp 0x513cd9
lea eax, [esp + 0x28]
push eax
call fcn.0051b6ee
mov ecx, dword [esp + 0x28]
cmp ecx, esi
je 0x513cd9
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x28], esi
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
jne 0x513bb7
push ecx
push ecx
mov dword [esp + 0x28], esp
jmp 0x513a16
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004c987d
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x51359f
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51359f
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004c98de
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x5135db
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5135db
cmp byte [ebp + 0x10], 0
je 0x513d4c
cmp dword [ebx + 0x144], 2
je 0x513d80
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push 1
push 1
push eax
push ebx
mov byte [esp + 0x27], 0
call fcn.00514d42
jmp 0x513584
cmp byte [ebp + 0x10], 0
je 0x513e5b
cmp dword [ebx + 0x144], 2
jne 0x513e5b
mov eax, dword [esp + 0x58]
call fcn.005160e6
mov edi, dword [ebp + 0xc]
and dword [esp + 0x44], 0
sub edi, 0
mov edx, dword [ebx + 0x14c]
mov esi, dword [ebx + 0x150]
mov ecx, dword [ebx + 0x154]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x148]
je 0x513dce
dec edi
je 0x513dc3
sub edi, 5
je 0x513dc0
dec edi
jne 0x513dd7
inc edx
jmp 0x513dcf
dec edx
jmp 0x513dc4
dec ecx
mov dword [esp + 0x44], 7
jmp 0x513dd7
inc ecx
mov dword [esp + 0x44], 3
mov edi, dword [esp + 0x4c]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x68]
call fcn.005165d9
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x34]
push eax
call fcn.00516958
push dword [esp + 0x44]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00429a01
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], ecx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x30], esp
call dword [eax + 0x118]
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0xf8]
jmp 0x514212
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push 1
push 0
jmp 0x513d58
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push dword [ebx + 0x14]
jmp 0x513d56
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push dword [ebx + 0x14]
jmp 0x513e65
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0051b6ee
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x513f27
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x513f27
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
lea esi, [esp + 0x20]
mov byte [esp + 0xfc], 0xc
call fcn.00503d42
test al, al
jne 0x513f3d
call fcn.004c9e1f
mov esi, dword [esp + 0x20]
test al, al
je 0x513ee6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
cmp eax, 6
je 0x513f50
mov byte [esp + 0xfc], 0
test esi, esi
je 0x513efe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
and dword [esp + 0x20], 0
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9982
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x513f27
mov eax, dword [ecx]
call dword [eax + 4]
and dword [esp + 0xb8], 0
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
jne 0x513eaa
jmp case.default.0x513559
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0x20]
test ecx, ecx
jmp 0x514045
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0051b769
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x513f6b
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xfc], 0
test esi, esi
je case.default.0x513559
mov eax, dword [esi]
mov ecx, esi
jmp 0x51404d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0051b769
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x513f9f
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
je case.default.0x513559
xor edi, edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.004c9a8b
lea esi, [esp + 0x20]
mov byte [esp + 0xfc], 0xd
call fcn.00507e14
test al, al
jne 0x514037
mov esi, dword [esp + 0x20]
cmp esi, edi
je 0x513fef
cmp dword [esp + 0x24], edi
jge 0x513fef
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
cmp eax, 6
je 0x514055
mov byte [esp + 0xfc], 0
cmp esi, edi
je 0x514006
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [esp + 0x20], edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.004c99f5
mov ecx, dword [esp + 0x34]
cmp ecx, edi
je 0x514025
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x34], edi
lea eax, [esp + 0x14]
call fcn.004c9e39
test al, al
jne 0x513fb2
jmp case.default.0x513559
mov byte [esp + 0xfc], 0
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je case.default.0x513559
mov eax, dword [ecx]
call dword [eax + 4]
jmp case.default.0x513559
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0051b6ee
mov ecx, dword [esp + 0x28]
cmp ecx, edi
je 0x514070
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xfc], 0
jmp 0x513f7b
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
push eax
lea ecx, [esp + 0x1c]
call fcn.004c9a8b
push dword [ebp + 0x10]
push dword [esp + 0x64]
call fcn.005159ab
cmp byte [esp + 0xf], 0
je 0x5140ab
mov eax, dword [ebx + 0xf4]
mov dword [ebx + 0x24], eax
cmp byte [ebp + 0x18], 0
mov edi, dword [esp + 0x44]
je 0x5140df
cmp byte [esp + 0x33], 0
jne 0x5140c6
lea ebx, [esp + 0x50]
cmp dword [esp + 0x50], edi
je 0x5140ca
lea ebx, [esp + 0x44]
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x28], esp
call fcn.004c9bfd
mov ebx, dword [ebp + 8]
call fcn.005179df
mov esi, dword [ebx]
sub esp, 0x10
lea eax, [ebx + 0xf4]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
add esi, 0x118
call fcn.00429391
mov ecx, ebx
call dword [esi]
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0xf8]
mov esi, ebx
call fcn.00514273
mov ecx, dword [esp + 0x5c]
mov esi, eax
cmp ecx, esi
je 0x5141e7
test ecx, ecx
je 0x514183
mov eax, dword [ecx]
lea edx, [esp + 0x34]
push edx
call dword [eax + 0x110]
push 4
pop eax
sub dword [esp + 0x34], eax
sub dword [esp + 0x38], eax
add dword [esp + 0x3c], eax
add dword [esp + 0x40], eax
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx]
lea ecx, [esp + 0x70]
mov dword [esp + 0x30], esp
push ecx
mov ecx, ebx
call dword [eax + 0x110]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x98]
test esi, esi
je 0x5141e7
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call dword [eax + 0x110]
push 4
pop eax
sub dword [esp + 0x34], eax
sub dword [esp + 0x38], eax
add dword [esp + 0x3c], eax
add dword [esp + 0x40], eax
mov ecx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov eax, dword [ebx]
lea ecx, [esp + 0x70]
mov dword [esp + 0x30], esp
push ecx
mov ecx, ebx
call dword [eax + 0x110]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x98]
mov byte [esp + 0xfc], 0xe
test edi, edi
je 0x5141fa
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [esp + 0xfc], 0
cmp dword [esp + 0x50], 0
je 0x514212
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
call dword [eax + 4]
or dword [esp + 0xfc], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004c983c
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14