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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov edi, ecx
push 4
push eax
mov dword [esp + 0x78], edi
call fcn.004c3240
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea edx, [ebp + 8]
push edx
lea ecx, [edi + 0x58]
call fcn.005288b0
test eax, eax
je 0x514f85
lea eax, [esp + 0xc]
push 4
push eax
call fcn.004c3240
mov esi, dword [esp + 0x1c]
xor ebx, ebx
add esp, 8
cmp esi, ebx
je 0x514b5e
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0x1008f178
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x514bc9
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x24]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x514ba1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov ecx, dword [esi]
cmp ecx, ebx
mov dword [esp + 0xc], ecx
je 0x514bb7
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 4]
call ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x514c38
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x514c34
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x514bd9
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push 0x10090814
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x514f44
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x24]
push eax
call edx
push eax
lea ecx, [esp + 0x10]
call fcn.0050afb0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x514c24
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x514c34
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test eax, eax
jne 0x514ca2
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x30]
push edx
call eax
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x514c69
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov ecx, dword [esi]
cmp ecx, ebx
mov dword [esp + 0xc], ecx
je 0x514c7f
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 4]
call ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x514c97
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x514c43
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x514d84
mov eax, dword [ebp + 0x18]
sub eax, 2
je 0x514d0f
sub eax, 4
je 0x514cf9
sub eax, 2
je 0x514cd7
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov dword [ecx], ebx
mov dword [edx], 0xc000000d
jmp 0x514d23
cmp dword [ebp + 0x14], 0x40
jae 0x514ced
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ebx
mov dword [ecx], 0xc0000004
jmp 0x514d23
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [edx], ebx
mov dword [eax], ebx
jmp 0x514d23
cmp dword [ebp + 0x14], 0x30
jae 0x514d78
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov dword [ecx], ebx
mov dword [edx], 0xc0000004
jmp 0x514d23
cmp dword [ebp + 0x14], 8
jae 0x514d47
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [edx], ebx
mov dword [eax], 0xc0000004
lea ecx, [esp + 0x10]
call fcn.004e4310
lea ecx, [esp + 0xc]
call fcn.004e4310
lea ecx, [esp + 0x14]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shr ecx, 1
push ecx
add eax, 4
push eax
lea ecx, [esp + 0x84]
add esi, 0x68
call fcn.0050aac0
mov ecx, eax
call fcn.0050aab0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ebx
mov dword [ecx], ebx
jmp 0x514d23
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x28]
push eax
call edx
push 0x10083960
lea ecx, [esp + 0x2c]
call fcn.00525630
mov esi, dword [0x1018efa4]
push 0x4021
push 3
lea ecx, [esp + 0x84]
add esi, 0x130
call fcn.0053ae20
mov ecx, eax
call fcn.0050aab0
push eax
push ebx
push 0x40
lea ecx, [esp + 0x3c]
call fcn.0050aab0
push eax
push ebx
lea ecx, [esp + 0xbc]
call fcn.0050aa80
mov ecx, eax
call fcn.0050aab0
mov edx, dword [esi]
push eax
push 0x100002
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
test eax, eax
jne 0x514f03
cmp dword [edi + 4], 1
jne 0x514ef8
mov eax, dword [ebp + 0x18]
sub eax, 1
je 0x514e83
sub eax, 1
je 0x514e31
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 1
jmp 0x514ee1
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
shr edx, 1
push edx
add eax, 4
push eax
lea ecx, [esp + 0x84]
add esi, 0x68
call fcn.0050aac0
mov ecx, eax
call fcn.0050aab0
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov dword [ecx], ebx
lea ecx, [esp + 0x28]
mov dword [edx], ebx
call fcn.00525460
lea ecx, [esp + 0x18]
call fcn.004c4570
jmp 0x514d23
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
shr eax, 1
push eax
lea ecx, [edi + 0x12]
push ecx
lea ecx, [esp + 0x90]
add esi, 0x68
call fcn.0050aac0
mov ecx, eax
call fcn.0050aab0
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
push eax
call edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [edi + 8]
mov eax, dword [eax + 0x78]
push edx
call eax
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
push edi
call eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov dword [ecx], ebx
mov dword [edx], ebx
lea ecx, [esp + 0x28]
call fcn.00525460
lea ecx, [esp + 0x18]
call fcn.004c4570
jmp 0x514d23
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
jmp 0x514ee1
lea ecx, [esp + 0x28]
call fcn.00525460
lea ecx, [esp + 0x18]
call fcn.004c4570
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x514f29
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x514f39
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
jmp 0x515644
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [ecx], 0xc0000229
je 0x514f66
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x514f7a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
jmp 0x515644
cmp dword [edi + 4], 1
jne 0x515635
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x514fa0
cmp eax, 2
jne 0x515635
lea eax, [esp + 0x18]
push 4
push eax
call fcn.004c3240
add esp, 8
lea ecx, [esp + 0x28]
call fcn.00525340
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x28]
push ecx
push edx
mov ecx, edi
call fcn.005107f0
test eax, eax
je 0x514fff
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x28]
mov dword [eax], 1
call fcn.00525460
xor ebx, ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x514ff4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
jmp 0x515644
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.004c3240
lea ecx, [esp + 0x28]
push 4
push ecx
call fcn.004c3240
lea edx, [esp + 0x20]
push 4
push edx
call fcn.004c3240
add esp, 0x18
lea ecx, [esp + 0x3c]
call fcn.0053ce10
mov eax, dword [edi + 8]
push eax
lea ecx, [esp + 0x3c]
call fcn.0053cdb0
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0053aad0
mov ecx, dword [eax + 4]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax]
xor ebx, ebx
push ebx
push 0x40
push ecx
push edx
lea ecx, [esp + 0x90]
call fcn.0050ab00
mov ecx, eax
call fcn.0050aab0
push eax
push ebx
lea ecx, [esp + 0xb4]
call fcn.0050aa80
mov ecx, eax
call fcn.0050aab0
push eax
mov ecx, edi
call fcn.005135d0
test eax, eax
je 0x5154d7
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x40]
call fcn.0053d000
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5150ba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x5150cc
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x5150e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x78], ebx
lea ecx, [esp + 0x38]
call fcn.0053cde0
lea eax, [esp + 0xc]
push 4
push eax
call fcn.004c3240
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
add esp, 8
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x28], ebx
call edx
xor ecx, ecx
cmp dword [eax], ebx
mov eax, dword [esp + 0x74]
sete cl
cmp eax, ebx
mov esi, ecx
je 0x515129
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x74], ebx
cmp esi, ebx
je 0x5151ef
lea ecx, [esp + 0x90]
call fcn.005372a0
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x40]
call fcn.0053d0e0
mov ecx, eax
call fcn.00537190
test eax, eax
je 0x515564
lea edx, [esp + 0x94]
push edx
call fcn.005247f0
add esp, 4
test eax, eax
je 0x515564
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x9c]
push 2
lea edx, [esp + 0x98]
push edx
push edx
lea edx, [esp + 0x78]
push edx
call eax
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x5151a8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x5151be
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
cmp ecx, ebx
je 0x5151d6
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], ebx
mov edx, dword [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0050aed0
mov dword [esp + 0x24], 1
jmp 0x515264
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x5151ff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov ecx, eax
mov dword [esp + 0xc], ecx
je 0x515219
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test eax, eax
jne 0x515264
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x84]
push edx
call eax
push eax
lea ecx, [esp + 0x10]
call fcn.0050afb0
lea ecx, [esp + 0x84]
call fcn.004e4310
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x51558a
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x515224
mov eax, dword [ebp + 0x18]
sub eax, 1
je 0x5152a8
sub eax, 1
jne 0x5152ff
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shr ecx, 1
push ecx
add eax, 4
push eax
lea ecx, [esp + 0xd8]
add esi, 0x68
call fcn.0050aac0
mov ecx, eax
call fcn.0050aab0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
jmp 0x5152fb
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
shr ecx, 1
push ecx
add eax, 0x12
push eax
lea ecx, [esp + 0xc8]
add esi, 0x68
call fcn.0050aac0
mov ecx, eax
call fcn.0050aab0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, dword [ecx]
mov edx, dword [esi + 8]
mov eax, dword [eax + 0x78]
push edx
call eax
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
push esi
call eax
mov edi, dword [esp + 0x70]
cmp dword [esp + 0x24], ebx
je 0x515629
mov ecx, dword [edi + 8]
push ecx
lea ecx, [esp + 0x34]
call fcn.0053cdb0
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x2c]
call fcn.0053aad0
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x3c]
push ecx
push ebx
push 0x40
push edx
push eax
lea ecx, [esp + 0xcc]
call fcn.0050ab00
mov ecx, eax
call fcn.0050aab0
push eax
push ebx
lea ecx, [esp + 0xb4]
call fcn.0050aa80
mov ecx, eax
call fcn.0050aab0
push eax
mov ecx, edi
call fcn.005135d0
test eax, eax
je 0x5155c9
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
call fcn.0053d000
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov esi, dword [esp + 0x10]
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
mov ecx, esi
mov dword [esp + 0x24], eax
call edx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x5155f8
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x5153b8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x30]
call fcn.0053cde0
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x5153d5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x5153e9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x5153fd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebx
lea ecx, [esp + 0x3c]
call fcn.00525460
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x51541a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x51542e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x515442
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.004c3240
lea ecx, [esp + 0x28]
push 4
push ecx
call fcn.004c3240
lea edx, [esp + 0x20]
push 4
push edx
call fcn.004c3240
add esp, 0x18
lea ecx, [esp + 0x3c]
call fcn.0053ce10
mov eax, dword [edi + 8]
push eax
lea ecx, [esp + 0x3c]
call fcn.0053cdb0
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0053aad0
mov ecx, dword [eax + 4]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax]
push ebx
push 0x40
push ecx
push edx
lea ecx, [esp + 0x90]
call fcn.0050ab00
mov ecx, eax
call fcn.0050aab0
push eax
push ebx
lea ecx, [esp + 0xb4]
call fcn.0050aa80
mov ecx, eax
call fcn.0050aab0
push eax
mov ecx, edi
call fcn.005135d0
test eax, eax
jne 0x515096
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x38]
mov dword [eax], 1
call fcn.0053cde0
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x5154fd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x515511
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebx
lea ecx, [esp + 0x3c]
call fcn.00525460
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x51552e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x515542
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x515556
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x28]
call fcn.00525460
jmp 0x514fe0
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x5154e9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
jmp 0x5154e9
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0xc]
mov dword [eax], 1
call fcn.004e4310
lea ecx, [esp + 0x3c]
call fcn.0050bb50
lea ecx, [esp + 0x10]
call fcn.004e4310
lea ecx, [esp + 0x1c]
call fcn.0050b4f0
lea ecx, [esp + 0x28]
call fcn.00525460
lea ecx, [esp + 0x18]
jmp 0x514d30
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 1
lea ecx, [esp + 0x30]
call fcn.0053cde0
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x5154e9
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0xc], ebx
jmp 0x5154e9
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x51560c
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x38]
push edx
call eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x515620
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x30]
call fcn.0053cde0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ebx
mov dword [ecx], ebx
jmp 0x5155db
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x51564e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c