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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x28], esi
mov edx, dword [esi]
mov eax, dword [esi + 4]
movzx ecx, byte [esi + 0x30]
mov dword [esp + 0x40], eax
sub ecx, 1
mov edi, dword [edx + 8]
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov eax, dword [edi + 0x74]
mov dword [esp + 0x44], eax
lea eax, [edi + 0xc]
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], ecx
js 0x50375a
jmp 0x502db4
mov edx, dword [esp + 0x20]
imul eax, ecx, 0x58
add esi, 0x300
add esi, eax
mov dword [esp + 0x14], esi
cmp byte [esi + 0x39], 0xb6
mov ebx, dword [esi + 0x4c]
mov dword [esp + 0x1c], ebx
je 0x5030ed
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp byte [eax + 0x33], 2
jne 0x502f64
movzx eax, byte [eax + 0x30]
dec eax
cmp ecx, eax
jne 0x502f64
mov ecx, dword [esp + 0x1c]
test dword [ecx + 0x2c], 0x200
je 0x502f64
mov eax, dword [ecx + 0x20]
test byte [eax + 0x38], 0x80
je 0x502f64
movzx ebp, word [ecx + 0x1e]
test ebp, ebp
je 0x502f64
mov eax, dword [eax + 8]
cmp word [eax + ebp*2], 0x24
jl 0x502f64
mov eax, dword [edx + 0x2c]
inc eax
xor esi, esi
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
lea ebx, [eax + esi]
mov edx, dword [ecx + 8]
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x502e59
push ebx
push esi
push edx
mov edx, 0x5d
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x502e84
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x5d
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
inc esi
cmp esi, ebp
jl 0x502e33
mov ecx, dword [esp + 0x20]
lea eax, [ebp + 1]
mov edx, 0x1a
add dword [ecx + 0x2c], eax
mov ecx, 0x17
mov eax, dword [esp + 0x14]
mov ebx, dword [edi + 0x74]
cmp byte [eax + 0x39], 4
mov esi, dword [eax + 8]
cmove edx, ecx
cmp dword [edi + 0x78], ebx
jg 0x502ecc
push dword [esp + 0x18]
mov ecx, edi
push 0
push esi
call fcn.0048e410
add esp, 0xc
mov ebx, eax
jmp 0x502eff
lea eax, [ebx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [edi + 0x70]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
jne 0x502f16
mov eax, dword [edi + 0x70]
lea ecx, [ebx + ebx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], ebp
mov esi, dword [esp + 0x14]
mov ecx, dword [edi + 0x74]
mov edx, dword [esi + 0x40]
cmp dword [edi + 0x78], ecx
jg 0x502f3b
push 0
push edx
push 1
mov edx, 0xb
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x502f64
lea eax, [ecx + 1]
xor ebp, ebp
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], ebp
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x502f81
push edx
mov edx, edi
call fcn.0048ec30
add esp, 4
jmp 0x502f8a
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
movzx edx, byte [esi + 0x3a]
mov ecx, dword [edi + 0x74]
mov esi, dword [esi + 0x40]
mov ebp, dword [eax + 0x3c]
mov al, byte [eax + 0x39]
mov dword [esp + 0x30], edx
mov byte [esp + 0x13], al
cmp dword [edi + 0x78], ecx
jg 0x502fbd
push edx
push esi
push ebp
movzx edx, al
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x502ff4
mov dl, byte [esp + 0x13]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [edi + 0x74]
mov esi, dword [esp + 0x14]
test eax, eax
jle 0x50300e
movzx edx, byte [esi + 0x3b]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
mov word [eax + ecx*4 - 0x12], dx
cmp dword [esi + 0x24], 0
je 0x50308b
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x503035
push edx
mov edx, edi
call fcn.0048ec30
add esp, 4
jmp 0x50303e
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 0x40]
mov ecx, dword [edi + 0x74]
dec edx
mov esi, dword [esi + 0x24]
cmp dword [edi + 0x78], ecx
jg 0x503062
push 0
push edx
push esi
mov edx, 0x3c
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x503087
lea eax, [ecx + 1]
xor ebp, ebp
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x3c
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], ebp
mov esi, dword [esp + 0x14]
test ebx, ebx
je 0x5030b5
mov eax, dword [edi]
mov edx, dword [edi + 0x74]
cmp byte [eax + 0x57], 0
je 0x5030a1
mov eax, 0x5c0f30
jmp 0x5030b2
test ebx, ebx
lea eax, [edx - 1]
cmovns eax, ebx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ebx, dword [esp + 0x1c]
test dword [ebx + 0x2c], 0x800
je 0x503369
cmp dword [esi + 0x44], 0
jle 0x503369
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x10]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x503115
push edx
mov edx, edi
call fcn.0048ec30
add esp, 4
jmp 0x50311e
mov ecx, dword [edi + 0xc]
mov edx, dword [esi + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50310a
push edx
mov edx, edi
call fcn.0048ec30
add esp, 4
jmp 0x5030b9
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
jmp 0x5030b9
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x48]
mov dword [esp + 0x30], edx
lea ecx, [edx - 1]
lea ecx, [ecx + ecx*4]
lea esi, [eax + ecx*4]
test edx, edx
jle 0x503369
lea ebp, [edi + 0x70]
nop dword [eax]
mov eax, dword [edi]
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x74]
inc ecx
mov dword [esp + 0x18], ebp
cmp byte [eax + 0x57], 0
je 0x50315a
mov eax, 0x5c0f30
jmp 0x50316b
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebp]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp byte [esi + 0x10], 0xb6
je 0x503321
cmp dword [esi + 0xc], 0
je 0x5032b3
mov eax, dword [ebx + 0x2c]
test eax, 0x400
jne 0x50319a
test eax, 0x40000
je 0x50319a
mov ebx, 1
jmp 0x50319c
xor ebx, ebx
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0
je 0x5031ff
mov ecx, dword [edi + 0x74]
mov ebp, dword [esi]
lea edx, [ecx + 2]
add edx, ebx
cmp dword [edi + 0x78], ecx
jg 0x5031c9
push 0
push edx
push ebp
mov edx, 0x1b
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x5031fb
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x1b
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
test ebx, ebx
je 0x5032b3
mov edx, dword [edi + 0x74]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
mov dword [esp + 0x3c], eax
lea ebp, [edx + 2]
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
cmp dword [edi + 0x78], edx
jg 0x503239
push ebx
push ebp
push eax
mov edx, 0x1c
mov ecx, edi
call fcn.0048e410
add esp, 0xc
mov edx, eax
jmp 0x50326c
lea eax, [edx + 1]
xor ebp, ebp
mov ebp, dword [esp + 0x38]
lea ecx, [edx + edx*4]
mov dword [edi + 0x74], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], ebp
lea ebp, [edx + 2]
mov dword [eax + ecx*4], 0x1c
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
mov ebx, dword [esp + 0x18]
cmp byte [eax + 0x57], 0
jne 0x50328c
mov eax, dword [ebx]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x3c]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
mov eax, dword [edi]
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x74]
inc ecx
cmp byte [eax + 0x57], 0
je 0x5032a0
mov eax, 0x5c0f30
jmp 0x5032b0
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov al, byte [esi + 0x10]
mov ecx, dword [edi + 0x74]
mov edx, dword [esi + 4]
mov ebx, dword [esi]
mov dword [esp + 0x3c], edx
mov byte [esp + 0x13], al
cmp dword [edi + 0x78], ecx
jg 0x5032e2
push 0
push edx
push ebx
movzx edx, al
mov ecx, edi
call fcn.0048e410
mov ebp, dword [esp + 0x24]
add esp, 0xc
jmp 0x503321
mov ebp, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dl, byte [esp + 0x13]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x74], eax
mov eax, dword [ebp]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov ecx, dword [esi + 4]
mov ebx, dword [edi + 0x74]
mov edx, ebx
lea eax, [ecx - 1]
test eax, eax
mov eax, dword [edi]
cmovns edx, ecx
cmp byte [eax + 0x57], 0
je 0x503343
lea ebp, [edi + 0x70]
mov eax, 0x5c0f38
jmp 0x50334f
mov eax, dword [ebp]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
mov dword [eax], ebx
sub esi, 0x14
mov ebx, dword [esp + 0x30]
dec ebx
mov dword [esp + 0x30], ebx
test ebx, ebx
mov ebx, dword [esp + 0x1c]
jg 0x503140
mov ecx, dword [edi + 0xc]
mov ebp, dword [esp + 0x14]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
mov edx, dword [ebp + 0xc]
not edx
jns 0x50338a
push edx
mov edx, edi
call fcn.0048ec30
add esp, 4
jmp 0x503393
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x50343e
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x5033bc
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x5033eb
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
mov edx, dword [edi + 0x74]
mov ecx, dword [ebp + 0x14]
cmp byte [eax + 0x57], 0
je 0x503400
mov eax, 0x5c0f30
jmp 0x503411
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x74]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffe
lea ecx, [edx - 1]
cmovns ecx, eax
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x503432
mov eax, 0x5c0f30
jmp 0x50343b
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov esi, dword [ebp + 0x30]
test esi, esi
je 0x503496
mov edx, dword [ebp + 0x2c]
mov ecx, dword [edi + 0x74]
shr edx, 1
cmp dword [edi + 0x78], ecx
jg 0x503467
push 0
push esi
push edx
mov edx, 0x3c
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x503496
mov ebx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x3c
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebp]
test edx, edx
je 0x503742
mov esi, dword [edi + 0x74]
mov ebx, dword [ebx + 0x2c]
mov dword [esp + 0x30], esi
cmp dword [edi + 0x78], esi
jg 0x5034ca
push 0
push 0
push edx
mov edx, 0x31
mov ecx, edi
call fcn.0048e410
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x5034f9
lea eax, [esi + 1]
mov dword [edi + 0x74], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test bl, 0x40
jne 0x50354e
mov ecx, dword [edi + 0x74]
mov edx, dword [ebp + 4]
cmp dword [edi + 0x78], ecx
jg 0x50351f
push 0
push 0
push edx
mov edx, 0x87
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x50354e
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test ebx, 0x200
jne 0x503571
test ebx, 0x2000
je 0x50368d
cmp dword [ebp + 0x44], 0
lea eax, [ebp + 0x44]
je 0x50368d
jmp 0x503580
lea eax, [ebp + 0x44]
test ebx, 0x2000
je 0x50363d
mov ebp, dword [eax]
mov edx, 0xffff8000
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x5035a8
mov eax, dword [esp + 0x2c]
xor edx, edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x5035a8
nop
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x5035a0
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x74]
mov esi, dword [ebp + 0x2c]
mov ebx, dword [eax + 8]
cmp dword [edi + 0x78], ecx
jg 0x5035ce
push edx
push esi
push ebx
mov edx, 0x64
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x5035f9
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x20]
mov edx, ebp
mov ecx, eax
mov esi, dword [eax + 8]
call fcn.004c1020
mov edx, eax
test edx, edx
je 0x503639
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x503627
push edx
mov edx, 0xfffffff7
call fcn.0048ef20
add esp, 4
jmp 0x503639
mov eax, dword [esi + 0x74]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov ebp, dword [esp + 0x14]
mov ecx, dword [edi + 0x74]
mov edx, dword [ebp + 8]
cmp dword [edi + 0x78], ecx
jg 0x50365e
push 0
push 0
push edx
mov edx, 0x87
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x50368d
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebp + 0x39], 0x43
mov edx, dword [ebp + 0x1c]
mov ecx, dword [edi + 0x74]
jne 0x5036cf
mov esi, dword [ebp + 0x3c]
cmp dword [edi + 0x78], ecx
jg 0x5036b6
push 0
push edx
push esi
mov edx, 0xc
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x503719
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], esi
jmp 0x503705
cmp dword [edi + 0x78], ecx
jg 0x5036ea
push 0
push edx
push 0
mov edx, 0xb
mov ecx, edi
call fcn.0048e410
add esp, 0xc
jmp 0x503719
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [esp + 0x30]
mov edx, dword [edi + 0x74]
test ecx, ecx
jns 0x503727
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x503736
mov eax, 0x5c0f30
jmp 0x50373f
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
sub ecx, 1
mov dword [esp + 0x34], ecx
jns 0x502db0
lea eax, [edi + 0xc]
mov ecx, dword [eax]
mov edx, dword [esi + 0x24]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x503776
push edx
mov edx, edi
call fcn.0048ec30
add esp, 4
jmp 0x50377f
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x74]
mov dword [ecx + edx*4], eax
xor ebp, ebp
cmp byte [esi + 0x30], 0
mov dword [esp + 0x30], ebp
jbe 0x503963
lea ebx, [esi + 0x34c]
mov dword [esp + 0x18], ebx
nop dword [eax]
movzx eax, byte [ebx - 0x14]
mov edx, dword [esp + 0x40]
lea eax, [eax + eax*8]
test byte [edx + eax*8 + 0x30], 0x10
mov ecx, dword [edx + eax*8 + 0x18]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx]
je 0x5037d9
mov ecx, dword [esp + 0x20]
push 0
push dword [edx + eax*8 + 0x28]
mov edx, dword [ebx - 0x2c]
push dword [ebx - 0x48]
call fcn.004fb790
add esp, 0xc
jmp 0x50394b
mov eax, dword [ecx + 0x2c]
test eax, 0x240
je 0x5037e8
mov eax, dword [ecx + 0x20]
jmp 0x5037f6
test eax, 0x2000
je 0x50394b
mov eax, dword [ebx - 8]
mov dword [esp + 0x34], eax
test eax, eax
je 0x50394b
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x57], 0
jne 0x50394b
cmp byte [esi + 0x32], 0
je 0x503824
mov eax, dword [eax + 0xc]
test byte [eax + 0x1c], 0x80
jne 0x503824
mov edx, dword [esi + 0x40]
jmp 0x503828
mov edx, dword [esp + 0x44]
mov esi, dword [ebx - 0x2c]
add esi, 1
mov ecx, esi
jns 0x503836
mov ecx, dword [edi + 0x74]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x503845
mov ebp, 0x5c0f30
jmp 0x50384e
mov eax, dword [edi + 0x70]
lea ecx, [ecx + ecx*4]
lea ebp, [eax + ecx*4]
mov edi, dword [esp + 0x3c]
sub edx, esi
lea eax, [edx + edx*4]
lea eax, [eax*4]
add eax, ebp
add ebp, 4
mov dword [esp + 0x1c], eax
mov ecx, eax
nop dword [eax]
mov eax, dword [ebp]
cmp eax, dword [ebx - 0x48]
jne 0x503931
mov al, byte [ebp - 4]
cmp al, 0x5d
jne 0x50391a
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp + 4]
test al, al
jns 0x5038a1
mov ecx, edi
call fcn.004b8dd0
mov eax, dword [eax + 4]
movzx esi, word [eax + edx*2]
jmp 0x5038e6
movzx ecx, dx
mov esi, ecx
test al, 0x20
je 0x5038e3
xor eax, eax
xor ebx, ebx
cmp ax, cx
jg 0x5038df
mov edx, dword [edi + 4]
add edx, 0xe
nop dword [eax]
test byte [edx], 0x20
lea eax, [esi + 1]
movzx ecx, ax
lea edx, [edx + 0x10]
movzx eax, si
cmove ecx, eax
inc ebx
movzx ecx, cx
movsx eax, cx
mov esi, ecx
cmp ebx, eax
jle 0x5038c0
mov ebx, dword [esp + 0x18]
movzx esi, si
mov ecx, dword [esp + 0x34]
xor eax, eax
movzx edx, word [ecx + 0x34]
test edx, edx
je 0x503904
mov ecx, dword [ecx + 4]
cmp si, word [ecx]
je 0x503915
inc eax
add ecx, 2
cmp eax, edx
jl 0x5038f7
or eax, 0xffffffff
mov ecx, dword [esp + 0x1c]
cwde
test eax, eax
js 0x503931
mov dword [ebp + 4], eax
jmp 0x50392b
movzx eax, ax
jmp 0x503907
cmp al, 0x86
jne 0x503927
mov eax, dword [ebx - 0x44]
mov byte [ebp - 4], 0x8d
jmp 0x50392e
cmp al, 0x16
jne 0x503931
mov eax, dword [ebx - 0x44]
mov dword [ebp], eax
add ebp, 0x14
lea eax, [ebp - 4]
cmp eax, ecx
jb 0x503870
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
movzx eax, byte [esi + 0x30]
inc ebp
add ebx, 0x58
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ebx
cmp ebp, eax
jl 0x5037a0
cmp dword [esi + 0x48], 0
je 0x503970
mov ecx, esi
call fcn.004fd5b0
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0x88], eax
mov edx, esi
call fcn.004fd450
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret