Function at 0x4b2510
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x55d9e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004ad150
mov edi, dword [esp + 0xdc]
mov ecx, esi
push edi
call fcn.004b22a0
mov eax, dword [esi]
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov edx, dword [eax]
lea ebx, [esi + 0x2e8c]
mov dword [esp + 0x24], edx
push 1
mov ecx, dword [eax + 4]
push ebx
mov dword [esp + 0x30], ecx
mov ecx, edi
mov edx, dword [eax + 8]
mov dword [esp + 0x34], edx
mov edx, dword [edi]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], eax
call dword [edx + 0x78]
mov dl, byte [esi + 0x31cc]
mov ecx, dword [esi + 0x31ec]
test dl, dl
mov eax, dword [ecx]
sete dl
push edx
push ebx
call dword [eax + 0x78]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esi + 0x2d78]
cdq
idiv ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xec]
dec eax
cdq
idiv ecx
mov ecx, dword [esi + 0x32a0]
lea ebx, [eax + ecx + 1]
mov eax, dword [esi + 0x3378]
lea ecx, [eax + 8]
call fcn.004c4350
lea ecx, [esi + 0x332c]
mov ebp, eax
call fcn.00504ed0
cmp ebx, eax
jge 0x4b25fa
inc ebx
lea ecx, [esi + 0x332c]
push ebx
call fcn.00504f30
mov ecx, dword [esi + 0x3378]
push eax
call fcn.004c01b0
mov ebp, eax
mov eax, dword [esi + 0x2e48]
mov ecx, dword [esi + 0x31d8]
sub eax, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], eax
mov al, byte [esi + 0x31d5]
test al, al
jne 0x4b262d
mov eax, dword [esi + 0x2d78]
imul eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x2d78]
mov ecx, dword [esi + 0x3378]
imul eax, dword [esp + 0x20]
push ebp
mov dword [esp + 0x44], eax
call fcn.004c2640
mov ecx, dword [esi + 0x32c4]
mov al, byte [esi + 0x32ac]
cmp ecx, 2
sete byte [esp + 0x13]
test al, al
je 0x4b266e
mov ecx, esi
call fcn.004b4b60
mov byte [esi + 0x32ac], 0
mov edx, dword [esi + 0x32a0]
lea ecx, [esi + 0x332c]
push edx
call fcn.00504f30
sub eax, 5
jns 0x4b2688
or eax, 0xffffffff
push eax
push 0
mov ecx, esi
call fcn.004af3b0
test al, al
je 0x4b26ad
mov ecx, esi
call fcn.004ae000
test al, al
jne 0x4b31f0
push edi
mov ecx, esi
call fcn.004b22a0
mov ecx, dword [esi + 0x31f4]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
je 0x4b31f0
lea ecx, [esp + 0xe0]
push ecx
push edi
mov ecx, esi
call fcn.004afae0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esi + 0x2e0c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x9c], edx
mov edx, eax
sub eax, ebp
cmp dword [esp + 0xe8], eax
jle 0x4b2738
cmp dword [esp + 0xe0], edx
jge 0x4b2738
cmp dword [esp + 0xec], ecx
jle 0x4b2738
cmp dword [esp + 0xe4], ebx
jge 0x4b2738
mov ebp, dword [esi + 0xc24]
mov ebx, dword [edi]
push ebp
sub esp, 0x10
mov ebp, esp
mov dword [ebp], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 4], ecx
mov ecx, edi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
call dword [ebx + 0x38]
cmp dword [esi + 0x32c4], 2
jne 0x4b277f
mov eax, dword [esi + 0x3354]
test eax, eax
je 0x4b31f0
mov al, byte [esp + 0x13]
test al, al
je 0x4b31f0
mov eax, dword [esi + 0x32a0]
push 0x7ffffff
push eax
lea ecx, [esi + 0x332c]
call fcn.00504f30
push eax
mov ecx, esi
call fcn.004af2b0
jmp 0x4b31f0
mov ecx, dword [esp + 0xe8]
mov eax, dword [esi + 0x2e48]
cmp ecx, eax
jle 0x4b31f0
mov al, byte [esi + 0x31d5]
mov ebx, edi
test al, al
mov dword [esp + 0x14], ebx
je 0x4b27bd
mov ebx, dword [esi + 0x31ec]
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test al, al
je 0x4b31f0
mov ebp, dword [ebx]
mov ecx, esi
call fcn.004b95a0
push eax
mov ecx, ebx
call dword [ebp + 0x84]
mov ebp, dword [ebx]
mov ecx, esi
call fcn.004b95c0
push eax
mov ecx, ebx
call dword [ebp + 0x88]
mov ebx, dword [esi + 0x32a0]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esi + 0x3278]
mov eax, dword [esi + 0x328c]
add ebx, ebp
mov dword [esp + 0x44], eax
test ecx, ecx
mov dword [esp + 0x20], ebx
jl 0x4b280b
mov eax, ecx
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 0x3378]
push eax
call fcn.004c0220
mov ecx, dword [esi + 0x2e48]
mov edx, dword [esi + 0x2e0c]
sub esp, 0x10
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov ebp, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x38]
sub eax, edx
mov edx, dword [edi]
mov dword [ebp + 4], ecx
mov ecx, edi
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0xc], eax
call dword [edx + 0x7c]
lea eax, [esi + 0x3200]
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov ecx, esi
mov dword [esp + 0xd4], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x60], esi
mov byte [esp + 0x68], 1
call fcn.004ae2f0
mov ebp, eax
mov ecx, esi
mov dword [esp + 0x6c], ebp
call fcn.004ae310
mov ecx, dword [esi + 0x3378]
push ebp
mov dword [esp + 0x74], eax
call fcn.004c0220
mov ecx, dword [esp + 0x70]
mov ebp, eax
push ecx
mov ecx, dword [esi + 0x3378]
mov dword [esp + 0x80], ebp
call fcn.004c0220
mov edx, dword [esi + 0x3300]
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x32fc]
push edx
push eax
call fcn.004bf3d0
mov ecx, dword [esi + 0x3300]
mov edx, dword [esi + 0x32fc]
push ecx
push edx
mov dword [esp + 0x84], eax
call fcn.004bf3e0
add esp, 0x10
mov dword [esp + 0x78], eax
mov dword [esp + 0x64], ebp
lea ecx, [esi + 0x332c]
mov byte [esp + 0xd4], 1
call fcn.00504ed0
cmp ebx, eax
jge 0x4b3115
jmp 0x4b2932
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0xdc]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xec]
cmp eax, ecx
jge 0x4b3115
lea ebp, [esi + 0x332c]
push ebx
mov ecx, ebp
call fcn.00504f30
mov edi, eax
mov ecx, ebp
push edi
call fcn.00504ef0
sub ebx, eax
mov eax, dword [esp + 0x5c]
cmp edi, eax
mov dword [esp + 0x58], ebx
je 0x4b29b7
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.004acb50
push edi
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.004b01e0
push 0
mov ecx, ebp
mov ebx, eax
call fcn.004acb50
mov edx, dword [esi + 0x335c]
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esi + 0x14]
push ebx
push eax
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x50], ebx
call fcn.004b0260
mov dword [esp + 0x5c], edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4b30c8
cmp dword [esi + 0x32f4], 1
jne 0x4b29e6
mov ecx, esi
call fcn.004ae2f0
mov ebp, dword [esp + 0x3c]
mov ecx, esi
mov dword [ebp + 0x28], eax
call fcn.004ae310
jmp 0x4b2ad0
mov ecx, dword [esp + 0x7c]
cmp edi, ecx
jl 0x4b2ab5
mov ebp, dword [esp + 0x80]
cmp edi, ebp
jg 0x4b2ab5
mov eax, dword [esi + 0x32f4]
cmp eax, 2
jne 0x4b2a3b
mov edx, dword [esp + 0x74]
mov ecx, esi
push edx
push edi
call fcn.004ade30
mov ebx, eax
mov eax, dword [esp + 0x78]
push eax
push edi
mov ecx, esi
mov dword [esp + 0x8c], ebx
call fcn.004ade30
mov dword [esp + 0x88], eax
jmp 0x4b2ac9
cmp eax, 3
jne 0x4b2a6d
mov ecx, dword [esi + 0x3378]
push edi
call fcn.004c01b0
lea ecx, [edi + 1]
mov ebx, eax
push ecx
mov ecx, dword [esi + 0x3378]
mov dword [esp + 0x88], ebx
call fcn.004c01b0
mov dword [esp + 0x88], eax
jmp 0x4b2ac9
cmp edi, ecx
jne 0x4b2a77
mov ebx, dword [esp + 0x6c]
jmp 0x4b2a85
mov ecx, dword [esi + 0x3378]
push edi
call fcn.004c01b0
mov ebx, eax
cmp edi, ebp
mov dword [esp + 0x84], ebx
jne 0x4b2a9d
mov eax, dword [esp + 0x70]
mov dword [esp + 0x88], eax
jmp 0x4b2ac9
mov ecx, dword [esi + 0x3378]
lea edx, [edi + 1]
push edx
call fcn.004c01b0
mov dword [esp + 0x88], eax
jmp 0x4b2ac9
or eax, 0xffffffff
or ebx, 0xffffffff
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ebx
mov ebp, dword [esp + 0x3c]
mov dword [ebp + 0x28], ebx
mov ecx, dword [esp + 0x50]
mov dword [ebp + 0x2c], eax
cmp edi, ecx
sete al
mov byte [ebp + 0x30], al
mov al, byte [esi + 0x31cd]
test al, al
je 0x4b2af6
or eax, 0xffffffff
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x2c], eax
mov byte [ebp + 0x30], 0
lea ecx, [ebp + 0x50]
lea edx, [ebp + 0x4c]
push ecx
push edx
mov ecx, esi
call fcn.004b8550
mov ebx, dword [esi + 0x2d78]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
add ebx, edx
lea edx, [edi + 1]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esi + 0x3378]
push edx
mov dword [esp + 0xa4], eax
call fcn.004c01b0
mov ecx, dword [esi + 0x3378]
push edi
mov dword [esp + 0x1c], eax
call fcn.004c01b0
mov edx, dword [esi + 0x32bc]
lea ecx, [esi + 0x32b0]
imul edx, dword [esi + 0x2d88]
push edx
mov dl, byte [esi + 0x32b8]
push edx
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x60], eax
push ecx
push eax
mov ecx, ebp
call fcn.004ac6b0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x24]
push edx
push ebp
mov edx, dword [esp + 0x24]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 4], edx
lea edx, [esi + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0xc], ebx
mov ecx, dword [esp + 0x3c]
push ecx
push edi
push edx
push eax
mov ecx, esi
call fcn.004b0f40
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
lea eax, [esi + 0x32b0]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.004ac750
push edi
lea ecx, [esi + 0x332c]
call fcn.00505370
mov ecx, dword [esi + 0x3328]
mov byte [esp + 0x13], al
test cl, 1
jne 0x4b2cd2
test al, al
je 0x4b2bf2
test cl, 2
jne 0x4b2bf7
jmp 0x4b2c5b
test cl, 4
je 0x4b2c6c
mov eax, dword [esi + 0x3378]
push edi
lea ecx, [eax + 8]
call fcn.004c4d50
test ah, 0x20
je 0x4b2c53
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc8], ebx
mov edx, dword [esp + 0x24]
lea ecx, [eax + 1]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx]
mov ecx, dword [esi + 0xc1c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0xdc]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x28]
call dword [ebp + 0x38]
mov al, byte [esp + 0x13]
test al, al
je 0x4b2c6c
test byte [esi + 0x3328], 8
jne 0x4b2c79
test al, al
jne 0x4b2e9d
test byte [esi + 0x3328], 0x10
je 0x4b2e9d
mov eax, dword [esi + 0x3378]
push edi
lea ecx, [eax + 8]
call fcn.004c4d50
test ah, 0x20
je 0x4b2e9d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ebp, dword [ecx]
mov ecx, dword [esi + 0xc1c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
lea eax, [ebx - 1]
mov dword [ecx + 4], eax
mov eax, ebx
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
call dword [ebp + 0x38]
jmp 0x4b2e9d
mov eax, dword [esi + 0x3378]
push edi
lea ecx, [eax + 8]
call fcn.004c4d50
mov ebp, eax
mov eax, dword [esi + 0x3378]
lea ecx, [edi - 1]
and ebp, 0xfff
push ecx
lea ecx, [eax + 8]
sub ebp, 0x400
call fcn.004c4d50
and eax, 0xfff
push edi
sub eax, 0x400
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x3378]
lea ecx, [eax + 8]
call fcn.004c4d50
mov ecx, dword [esp + 0x48]
and eax, 0xf000f000
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x3378]
cmp ecx, ebp
mov edx, dword [eax + 0x4b0]
mov dword [esp + 0x4c], edx
jl 0x4b2d59
mov ecx, dword [esp + 0x18]
test ch, 0x40
je 0x4b2dad
lea ecx, [edi - 1]
push ecx
lea ecx, [eax + 8]
call fcn.004c4d50
test ah, 0x80
jne 0x4b2dad
mov ecx, dword [esi + 0x2d88]
mov edx, dword [esp + 0x34]
imul ecx, dword [esp + 0x4c]
imul ecx, ebp
mov eax, dword [esp + 0x24]
add ecx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0xa8], ebx
lea eax, [eax + ecx - 1]
mov ecx, dword [esi + 0xc1c]
push ecx
mov edx, dword [edx]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x30]
inc eax
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
call dword [edx + 0x38]
mov eax, dword [esp + 0x18]
test ah, 0x80
jne 0x4b2dc7
mov al, byte [esp + 0x13]
test al, al
jne 0x4b2e1b
test byte [esi + 0x3328], 0x10
je 0x4b2e1b
mov edx, dword [esi + 0x2d88]
mov ecx, dword [esp + 0x1c]
imul edx, dword [esp + 0x4c]
imul edx, ebp
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x34]
add edx, ecx
mov ecx, dword [esp + 0x14]
lea eax, [eax + edx - 1]
mov edx, dword [ecx]
mov ecx, dword [esi + 0xc1c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
lea eax, [ebx - 1]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
call dword [edx + 0x38]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], 0
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x2c]
test ebp, ebp
mov dword [esp + 0x94], eax
jl 0x4b2e9d
mov edx, dword [esi + 0x2d88]
mov eax, dword [esp + 0x34]
imul edx, dword [esp + 0x18]
imul edx, dword [esp + 0x4c]
lea eax, [edx + eax - 1]
mov edx, dword [esp + 0x14]
lea ecx, [eax + 1]
mov edx, dword [edx]
mov dword [esp + 0x94], ecx
mov ecx, dword [esi + 0xc1c]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xa8]
mov dword [ecx + 8], eax
mov eax, ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x28]
call dword [edx + 0x38]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ebp
mov dword [esp + 0x18], eax
jle 0x4b2e3d
cmp edi, dword [esp + 0x50]
jne 0x4b307a
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x54]
mov ecx, dword [ebp + 0x14]
sub eax, edi
push ecx
push eax
mov dword [esp + 0x50], eax
call fcn.004bf3d0
mov edx, dword [esp + 0x60]
add esp, 8
test edx, edx
mov dword [esp + 0x18], eax
jg 0x4b2ed6
xor ecx, ecx
jmp 0x4b2eea
cmp edx, dword [ebp + 0x58]
jge 0x4b2ee7
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4b2ee7
mov ecx, dword [ecx + edx*4]
jmp 0x4b2eea
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jl 0x4b307a
lea ecx, [edx + 1]
test ecx, ecx
jg 0x4b2efd
xor ecx, ecx
jmp 0x4b2f11
cmp ecx, dword [ebp + 0x58]
jge 0x4b2f0e
mov edi, dword [ebp + 4]
test edi, edi
je 0x4b2f0e
mov ecx, dword [edi + ecx*4]
jmp 0x4b2f11
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jl 0x4b2f1e
cmp eax, dword [ebp + 0x18]
jne 0x4b307a
test edx, edx
jg 0x4b2f26
xor ecx, ecx
jmp 0x4b2f3a
cmp edx, dword [ebp + 0x58]
jge 0x4b2f37
mov eax, dword [ebp + 4]
test eax, eax
je 0x4b2f37
mov ecx, dword [eax + edx*4]
jmp 0x4b2f3a
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x44]
mov edi, dword [esp + 0x18]
mov edi, dword [eax + edi*4]
sub edi, dword [eax + ecx*4]
mov eax, dword [esp + 0x34]
add edi, eax
mov eax, dword [esi + 0x3374]
test eax, eax
je 0x4b2f7e
test edx, edx
jle 0x4b2f7e
cmp edx, dword [ebp + 0x58]
jge 0x4b2f6c
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4b2f6c
mov ecx, dword [ecx + edx*4]
jmp 0x4b2f6f
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4b2f7e
mov edx, dword [esi + 0x2d84]
imul edx, eax
add edi, edx
mov eax, dword [esi + 0x3378]
lea ecx, [eax + 8]
call fcn.004c4350
cmp dword [esp + 0x44], eax
jne 0x4b2f9a
mov ecx, dword [esi + 0x2d84]
jmp 0x4b2fbe
mov eax, dword [esp + 0x48]
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jl 0x4b2fad
mov ecx, dword [esi + 0x2d84]
jmp 0x4b2fbe
mov ebp, dword [ebp + 0x44]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + eax*4 + 4]
mov edx, dword [ebp + eax*4]
sub ecx, edx
cmp ecx, 3
jge 0x4b2fc8
mov ecx, 3
mov al, byte [esi + 0x3228]
test al, al
je 0x4b2fdc
mov al, byte [esi + 0x3229]
test al, al
jne 0x4b2fea
mov eax, dword [esi + 0x3278]
test eax, eax
jl 0x4b307a
test edi, edi
jl 0x4b307a
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xb4], eax
xor eax, eax
test ebp, ebp
jle 0x4b302b
cmp dword [esi + 0x2e78], 1
jle 0x4b302b
mov eax, 1
mov ebp, dword [esi + 0x3278]
test ebp, ebp
jge 0x4b3048
cmp byte [esi + 0x31ce], 0
je 0x4b3048
inc edi
lea edx, [ebx - 2]
lea eax, [edi + ecx - 1]
jmp 0x4b3052
sub edi, eax
mov eax, dword [esi + 0x2e78]
add eax, edi
mov ebp, dword [esi + 0x2e5c]
mov ecx, dword [esp + 0x14]
push ebp
sub esp, 0x10
mov ebx, dword [ecx]
mov ebp, esp
mov dword [ebp], edi
mov dword [ebp + 4], edx
mov edx, dword [esp + 0xcc]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
call dword [ebx + 0x38]
mov al, byte [esi + 0x31d5]
test al, al
je 0x4b30d2
mov ecx, dword [esp + 0xdc]
mov edx, dword [esi + 0x2e48]
xor ebx, ebx
mov edi, dword [esp + 0x40]
mov ebp, dword [ecx]
mov ecx, dword [esi + 0x31ec]
push ecx
push ebx
push edx
mov eax, dword [esi + 0x2d78]
sub esp, 0x10
add eax, edi
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xf8]
call dword [ebp + 0x44]
mov al, byte [esi + 0x31d5]
test al, al
jne 0x4b30e2
mov eax, dword [esi + 0x2d78]
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x2d78]
mov edi, dword [esp + 0x40]
add edi, ecx
lea ecx, [esi + 0x332c]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x20]
inc edi
mov dword [esp + 0x20], edi
call fcn.00504ed0
cmp edi, eax
jl 0x4b2927
mov edi, dword [esp + 0xdc]
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0x2e48]
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x8c], ecx
lea ecx, [esi + 0x332c]
mov dword [esp + 0x90], eax
call fcn.00504ed0
mov ecx, dword [esi + 0x32a0]
mov ebx, eax
sub ebx, ecx
imul ebx, dword [esi + 0x2d78]
cmp ebx, ebp
jge 0x4b31d0
mov eax, dword [esi + 0xc24]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x90]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebp
mov ecx, edi
call dword [edx + 0x38]
cmp dword [esi + 0x2e74], 1
jne 0x4b31d0
mov eax, dword [esi + 0x32c0]
mov ecx, dword [esp + 0x34]
imul eax, dword [esi + 0x2d88]
add eax, ecx
mov ecx, dword [esi + 0x2e70]
push ecx
sub esp, 0x10
lea edx, [eax + 1]
mov ecx, esp
mov dword [esp + 0xa8], edx
mov edx, dword [edi]
mov dword [ecx], eax
mov eax, dword [esp + 0xa8]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebp
mov ecx, edi
call dword [edx + 0x38]
mov ecx, esi
call fcn.004b4bb0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xd4], 0xffffffff
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004acb50
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret 0x14