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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x54d48c
push eax
mov eax, 0x1598
mov dword fs:[0], esp
call fcn.00540a20
mov dl, byte [0x5d9178]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x82d]
mov byte [esp + 0x82c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
lea ecx, [esp + 0x1278]
mov dword [esp + 0x5c], ebx
or edi, 0xffffffff
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call fcn.00501c90
lea ecx, [esp + 0xaac]
mov dword [esp + 0x15b0], ebx
call fcn.004ac5b0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x15b0], 1
call fcn.00450040
mov ecx, dword [ebp + 0x60]
lea eax, [esp + 0xf78]
push eax
mov byte [esp + 0x15b4], 2
call fcn.004582e0
mov ecx, dword [ebp + 0x88]
mov esi, dword [0x553d48]
push ebx
push ebx
push 0x1009
push ecx
call esi
mov edx, dword [ebp + 0x88]
push ebx
push ebx
push 0x101c
push edx
call esi
cmp eax, ebx
je 0x498a29
mov eax, dword [ebp + 0x88]
push ebx
push ebx
push 0x101c
push eax
call esi
cmp eax, ebx
jne 0x498a15
cmp dword [esp + 0x15b8], ebx
jne 0x498b5d
mov al, byte [esp + 0x821]
mov byte [esp + 0x15b0], 4
test al, al
jne 0x498ab0
mov al, byte [esp + 0x820]
test al, al
je 0x498a83
mov eax, dword [esp + 0x81c]
xor esi, esi
cmp eax, ebx
jbe 0x498ab0
mov ecx, dword [esp + 0x818]
mov ecx, dword [ecx + esi*4]
cmp ecx, ebx
je 0x498a75
mov edx, dword [ecx]
push 3
call dword [edx]
mov eax, dword [esp + 0x81c]
inc esi
cmp esi, eax
jb 0x498a61
jmp 0x498ab0
mov eax, dword [esp + 0x81c]
xor esi, esi
cmp eax, ebx
jbe 0x498ab0
mov eax, dword [esp + 0x818]
mov ecx, dword [eax + esi*4]
cmp ecx, ebx
je 0x498aa4
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x81c]
inc esi
cmp esi, eax
jb 0x498a90
mov eax, dword [esp + 0x818]
mov edi, dword [0x553b00]
push eax
call edi
mov al, byte [esp + 0x819]
add esp, 4
test al, al
mov dword [esp + 0x818], ebx
mov dword [esp + 0x81c], ebx
mov byte [esp + 0x15b0], 3
jne 0x49985a
mov al, byte [esp + 0x814]
test al, al
je 0x498b28
mov eax, dword [esp + 0x810]
xor esi, esi
cmp eax, ebx
jbe 0x49985a
mov ecx, dword [esp + 0x80c]
mov eax, dword [ecx + esi*4]
push eax
call fcn.0053feee
mov eax, dword [esp + 0x814]
add esp, 4
inc esi
cmp esi, eax
jb 0x498b04
jmp 0x49985a
mov eax, dword [esp + 0x810]
xor esi, esi
cmp eax, ebx
jbe 0x49985a
mov edx, dword [esp + 0x80c]
mov eax, dword [edx + esi*4]
push eax
call fcn.0053feee
mov eax, dword [esp + 0x814]
add esp, 4
inc esi
cmp esi, eax
jb 0x498b39
jmp 0x49985a
mov ecx, ebp
call fcn.00497ec0
mov ecx, dword [esp + 0x15b8]
xor esi, esi
mov dword [ebp + 0xa8], esi
mov dword [ebp + 0xac], esi
call fcn.00452d60
xor ebx, ebx
mov dword [esp + 0x34], eax
test eax, eax
mov dword [ebp + 0x1c8], eax
jle 0x498bb6
mov ecx, dword [esp + 0x15b8]
push esi
call fcn.004df390
mov ecx, eax
call fcn.004ddb10
cmp edi, eax
mov dword [esp + 0x30], eax
je 0x498bad
inc ebx
mov edi, eax
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
jl 0x498b8e
mov esi, dword [ebp + 0x1c8]
mov eax, dword [ebp + 0x60]
add esi, ebx
mov dword [esp + 0x54], 0xffffffff
mov dword [ebp + 0x1c8], esi
mov edx, dword [eax + 0xd4]
test edx, edx
mov ecx, esi
je 0x498bec
mov edx, dword [eax + 0xd0]
test edx, edx
jne 0x498bec
inc ecx
mov dword [ebp + 0x1c8], ecx
mov esi, dword [ebp + 0x1c8]
lea ecx, [esi*8 + 4]
push ecx
call fcn.0053ff1e
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x15b0], 5
je 0x498c2c
push fcn.004062a0
push 0x408430
lea edi, [eax + 4]
push esi
push 8
push edi
mov dword [eax], esi
call fcn.00540b4a
jmp 0x498c2e
xor edi, edi
push 8
mov byte [esp + 0x15b4], 2
mov dword [ebp + 0x1c0], edi
call fcn.0053ff1e
add esp, 4
mov dword [esp + 0x58], eax
xor esi, esi
mov byte [esp + 0x15b0], 6
cmp eax, esi
je 0x498c61
mov ecx, eax
call fcn.00540080
jmp 0x498c63
xor eax, eax
mov edx, dword [ebp + 0x1c8]
mov ecx, eax
push edx
push edx
push 0x20
push 0x60
push 0x60
mov byte [esp + 0x15c4], 2
mov dword [ebp + 0x1c4], eax
call fcn.0054014c
mov eax, dword [ebp + 0x1c4]
cmp eax, esi
jne 0x498c94
xor eax, eax
jmp 0x498c97
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x88]
push eax
push esi
push 0x1003
push edx
call dword [0x553d48]
push eax
call fcn.00540086
mov edi, 0x26
push 0x5d9178
lea ecx, [esp + 0x50]
mov dword [ebp + 0x64], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x68], esi
call fcn.0053ffba
push 0x5d9178
lea ecx, [esp + 0x40]
mov byte [esp + 0x15b4], 7
call fcn.0053ffba
mov eax, dword [esp + 0x34]
mov byte [esp + 0x15b0], 8
cmp eax, esi
mov dword [ebp + 0xac], 1
mov dword [esp + 0x14], esi
jle 0x4996f3
jmp 0x498d0d
mov edi, dword [esp + 0x38]
mov eax, dword [ebp + 0xa8]
test eax, eax
jne 0x4996f3
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x15b8]
push esi
call fcn.004df390
mov ebx, eax
mov ecx, ebx
mov dword [esp + 0x2c], ebx
call fcn.004dde30
mov ecx, ebx
mov dword [esp + 0x58], eax
call fcn.004e1480
cmp eax, 9
mov dword [ebp + 0x1dc], eax
je 0x498d54
cmp eax, 3
jne 0x498d5e
cmp edi, eax
je 0x498d5e
mov edi, eax
mov dword [esp + 0x38], edi
mov ecx, ebx
call fcn.004ddb10
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
cmp ecx, eax
je 0x498eeb
test esi, esi
jle 0x498e1e
cmp edi, 9
je 0x498d8b
cmp edi, 3
jne 0x498e1e
lea ecx, [esp + 0x44]
call fcn.0053fedc
cmp edi, 9
mov byte [esp + 0x15b0], 9
jne 0x498da8
push 0x586390
jmp 0x498dad
push 0x584c68
lea ecx, [esp + 0x48]
call fcn.0053fed6
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x3c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0053ffb4
push ecx
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
mov byte [esp + 0x15c0], 0xa
call fcn.0053ffb4
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0x15c4], 0xb
call fcn.0053ffb4
mov ecx, ebp
mov byte [esp + 0x15c0], 9
call fcn.0049a490
lea ecx, [esp + 0x44]
mov byte [esp + 0x15b0], 8
call fcn.0053feb8
mov edi, dword [ebp + 0x1dc]
mov esi, dword [esp + 0x20]
push 0
mov ecx, ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x68], esi
call fcn.004dd010
test eax, eax
je 0x498eab
push eax
call dword [0x553b0c]
mov ecx, eax
mov edi, 0x64
cdq
idiv edi
add esp, 4
mov eax, ecx
mov edi, 0x2710
push edx
cdq
idiv edi
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x68db8bad
push edx
imul ecx
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0xa38]
push 0x582a78
push edx
call dword [0x553ae8]
add esp, 0x14
lea eax, [esp + 0xa2c]
lea ecx, [esp + 0x4c]
push eax
call fcn.0053fed6
mov edi, dword [esp + 0x38]
push 0
mov ecx, ebx
call fcn.004dcf50
push eax
lea ecx, [esp + 0x40]
call fcn.0053fed6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x15bc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x30]
mov eax, esi
push ecx
push eax
mov dword [esp + 0x5c], ecx
inc esi
push edx
push ebx
mov ecx, ebp
mov dword [esp + 0x30], esi
call fcn.00498620
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
dec eax
cmp esi, eax
jne 0x498f99
cmp edi, 9
je 0x498f06
cmp edi, 3
jne 0x498f99
lea ecx, [esp + 0x48]
call fcn.0053fedc
cmp edi, 9
mov byte [esp + 0x15b0], 0xc
jne 0x498f23
push 0x586390
jmp 0x498f28
push 0x584c68
lea ecx, [esp + 0x4c]
call fcn.0053fed6
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x3c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0053ffb4
push ecx
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
mov byte [esp + 0x15c0], 0xd
call fcn.0053ffb4
push ecx
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0x15c4], 0xe
call fcn.0053ffb4
mov ecx, ebp
mov byte [esp + 0x15c0], 0xc
call fcn.0049a490
lea ecx, [esp + 0x48]
mov byte [esp + 0x15b0], 8
call fcn.0053feb8
mov ecx, ebx
call fcn.004facb0
test esi, esi
mov dword [esp + 0x60], eax
jne 0x498ffb
mov ecx, ebx
call fcn.004ddaf0
cmp eax, 0xfffcfffc
mov dword [ebp + 0x1d8], eax
jne 0x498fc2
mov dword [ebp + 0x1d8], esi
push 0
mov ecx, ebx
call fcn.004dd0b0
push eax
lea ecx, [ebp + 0x1d0]
call fcn.0053fed6
push 0
mov ecx, ebx
call fcn.004dcf30
push eax
lea ecx, [ebp + 0x1d4]
call fcn.0053fed6
mov eax, dword [ebp + 0x1d8]
mov ecx, dword [ebp + 0x60]
push eax
call fcn.00457d40
mov ecx, ebx
call fcn.004ddab0
cdq
and edx, 0xfffff
mov ecx, 0x5d9260
add eax, edx
mov dword [esp + 0x24], 0xffffffff
mov edi, eax
mov dword [esp + 0x40], 0
sar edi, 0x14
mov dword [esp + 0x28], edi
call fcn.00467dc0
cmp eax, 4
ja case.default.0x499037
jmp dword [eax*4 + 0x4998d0]
cmp edi, 0x1e
jge 0x499289
push 0x1658
call fcn.0053ff1e
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x15b0], 0xf
je 0x49906f
mov ecx, eax
call fcn.0051a7a0
mov esi, eax
jmp 0x499071
xor esi, esi
mov edx, dword [esi]
push 1
push ebx
mov ecx, esi
mov byte [esp + 0x15b8], 8
mov dword [esp + 0x20], esi
call dword [edx + 0x80]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x4990b2
mov ecx, esi
call fcn.00515440
test al, al
jne 0x499289
push 0
mov ecx, esi
call fcn.004fc660
test eax, eax
jne 0x499289
mov ecx, esi
call fcn.004f9ee0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x74]
mov dword [esp + 0x24], eax
jmp 0x499289
push 0x1658
call fcn.0053ff1e
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
mov byte [esp + 0x15b0], 0x10
je 0x4990f2
mov ecx, eax
call fcn.0051a7a0
mov esi, eax
jmp 0x4990f4
xor esi, esi
push 0
mov ecx, ebx
mov byte [esp + 0x15b4], 8
mov dword [esp + 0x1c], esi
call fcn.004dde70
lea ecx, [esp + 0xf78]
push eax
push ecx
lea edx, [esp + 0x1080]
push 0x582c80
push edx
call dword [0x553ae8]
mov eax, dword [esi]
add esp, 0x10
lea ecx, [esp + 0x1078]
push 1
push 0
push 0
push ecx
mov ecx, esi
call dword [eax + 0x84]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x499289
mov ecx, esi
call fcn.00515440
test al, al
jne 0x499187
push 0
mov ecx, esi
call fcn.004fc660
test eax, eax
jne 0x499187
mov ecx, esi
call fcn.004f9ee0
mov edx, dword [esi]
push 0
lea eax, [esp + 0x107c]
push 0
push eax
mov ecx, esi
call dword [edx + 0x7c]
mov dword [esp + 0x24], eax
jmp 0x499289
mov ecx, esi
call fcn.004e3be0
test eax, eax
jne 0x499289
mov ecx, ebx
call fcn.004fa7b0
test eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], 0
jle 0x499289
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.004fa4e0
mov edi, eax
lea edx, [esp + 0x74]
lea eax, [esp + 0x68]
push edx
push eax
mov ecx, edi
call fcn.004faef0
mov ecx, edi
call fcn.004faf10
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
push 0
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x78], eax
call fcn.004fa520
test eax, eax
jne 0x499234
mov eax, dword [esp + 0x6c]
test eax, eax
jle 0x499234
lea eax, [esp + 0x70]
mov ecx, edi
push eax
call fcn.004fb140
test eax, eax
mov dword [esp + 0x70], eax
je 0x499234
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x68]
push 1
push ecx
push edx
mov ecx, esi
call fcn.004fa520
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
push 1
push ecx
push edx
mov ecx, eax
call fcn.004f6780
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4991b1
mov edi, dword [esp + 0x28]
jmp 0x499289
lea eax, [esp + 0x78]
lea ecx, [esp + 0xc8]
push eax
push ebx
push ecx
call fcn.00450c90
add esp, 0xc
mov dword [esp + 0x40], eax
jmp 0x499289
push str.Unsupported_database_type
push str.CThumbNailDlg::ShowThumbNailsInStudy
push 0x2e8
push str.F:NuVisionAppsNuFilmThumbNailDlg.cpp
push 2
call fcn.004aa860
add esp, 0x14
mov eax, dword [ebp + 0x1dc]
test eax, eax
jle 0x4992a4
cmp eax, 2
jle 0x49929d
cmp eax, 9
jne 0x4992a4
mov byte [esp + 0x13], 1
jmp 0x4992a9
mov byte [esp + 0x13], 0
cmp edi, 0x1e
jge 0x4993ea
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x49931d
mov al, byte [esp + 0x13]
test al, al
je 0x4992d8
mov ecx, ebx
call fcn.004facb0
mov esi, 1
cmp eax, esi
jg 0x4992da
cmp dword [esp + 0x60], esi
jg 0x4992da
xor esi, esi
mov edx, dword [ebp + 0x20]
push edx
call dword [0x553da4]
push eax
call fcn.00540008
mov eax, dword [eax + 4]
push 0x60
push esi
mov esi, dword [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x1288]
call fcn.00503610
mov ecx, dword [esp + 0x60]
mov edi, eax
push ecx
mov ecx, ebx
mov dword [esp + 0x20], edi
call fcn.004e0430
mov dword [esp + 0x2c], esi
jmp 0x499431
mov eax, dword [esp + 0x40]
test eax, eax
je 0x499451
push 0
push eax
lea ecx, [esp + 0xab4]
call fcn.004af000
mov al, byte [esp + 0x13]
test al, al
je 0x49935f
mov ecx, ebx
call fcn.004facb0
cmp eax, 1
jg 0x499353
cmp dword [esp + 0x60], 1
jle 0x49935f
lea ecx, [esp + 0xaac]
call fcn.004b1380
lea ecx, [esp + 0xaac]
call fcn.004ac7f0
cmp eax, 0x60
jne 0x499381
lea ecx, [esp + 0xaac]
call fcn.004ac800
cmp eax, 0x60
je 0x499393
push 0
push 0x60
push 0x60
lea ecx, [esp + 0xab8]
call fcn.004b2150
mov edx, dword [ebp + 0x20]
push edx
call dword [0x553da4]
push eax
call fcn.00540008
push 0
lea ecx, [esp + 0xab0]
mov esi, eax
call fcn.004ac930
push eax
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xab8]
call fcn.004ac950
push eax
push 4
lea ecx, [esp + 0xabc]
call fcn.004ac930
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [0x5530d4]
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x49942d
lea esi, [ebp + 0x1e4]
mov ecx, esi
call fcn.0054042e
push 0x201
push 2
push 0x201
call fcn.0054010a
push eax
call dword [0x553da8]
push eax
mov ecx, esi
call fcn.00540104
test esi, esi
jne 0x49941f
xor edi, edi
jmp 0x499422
mov edi, dword [esi + 4]
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x1c], edi
inc eax
mov dword [ebp + 0x64], eax
mov esi, dword [esp + 0x18]
test edi, edi
je 0x499455
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x1c0]
lea edi, [edx*8]
mov ecx, edi
add ecx, eax
jmp 0x499483
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push 0
push 8
push 1
lea edi, [ecx*8]
mov ecx, dword [ebp + 0x1c0]
mov eax, edi
push 0x60
add eax, ecx
push 0x60
mov dword [esp + 0x3c], eax
call dword [0x553090]
mov ecx, dword [esp + 0x28]
push eax
call fcn.00540104
mov eax, dword [ebp + 0x1c0]
mov ecx, dword [ebp + 0x1c4]
add edi, eax
jne 0x49949c
xor eax, eax
jmp 0x49949f
mov eax, dword [edi + 4]
mov edx, dword [ecx + 4]
push 0
push eax
push edx
call dword [0x553028]
mov ecx, dword [esp + 0x2c]
call fcn.004e3be0
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
cmp ecx, 1
mov byte [esp + 0x82c], 0
jne 0x499574
mov eax, dword [esp + 0x54]
push eax
call fcn.00499a00
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x49953c
mov ecx, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xa8]
push ecx
push edx
mov edx, dword [esp + 0x64]
sub eax, edx
lea ecx, [esp + 0x834]
inc eax
push eax
push str.__d_s____s
push ecx
call dword [0x553ae8]
mov esi, dword [esp + 0x2c]
add esp, 0x14
jmp 0x4995b3
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xa8]
push edx
mov edx, dword [esp + 0x60]
sub eax, edx
lea ecx, [esp + 0xac]
inc eax
lea edx, [esp + 0x830]
push eax
push ecx
push str._d_s__
push edx
call dword [0x553ae8]
mov esi, dword [esp + 0x2c]
add esp, 0x14
jmp 0x4995b3
test eax, eax
je 0x499597
push eax
mov eax, dword [esp + 0x18]
inc eax
lea ecx, [esp + 0x830]
push eax
push str.__d____s
push ecx
call dword [0x553ae8]
add esp, 0x10
jmp 0x4995b3
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x82c]
inc edx
push edx
push str.__d_
push eax
call dword [0x553ae8]
add esp, 0xc
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x82c]
shl edx, 0x10
or edx, eax
lea eax, [esp + 0x80]
mov dword [esp + 0x94], ecx
mov ecx, dword [ebp + 0x88]
push eax
push 0
push 0x1007
push ecx
mov dword [esp + 0x90], 7
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], 0
mov dword [esp + 0xa8], 0x10
mov dword [esp + 0xb0], edx
mov dword [esp + 0xac], edi
call dword [0x553d48]
inc edi
mov ecx, 0x5d9260
mov dword [esp + 0x20], edi
call fcn.00467dc0
test eax, eax
jl 0x4996d2
cmp eax, 3
jg 0x4996d2
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4996d2
mov ecx, ebx
call fcn.004dde30
push eax
mov ecx, esi
call fcn.004e0da0
mov ecx, ebx
call fcn.004ddb10
push eax
mov ecx, esi
call fcn.004e0a20
mov ecx, ebx
call fcn.004ddaf0
push eax
mov ecx, esi
call fcn.004e0a00
push 0x10
push 0x7fe0
mov ecx, esi
call fcn.004fa650
test eax, eax
je 0x499697
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push 0x1088
push 0x7fdd
mov ecx, esi
call fcn.004fa650
test eax, eax
je 0x4996b4
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x15b8]
push 0
push esi
push eax
call fcn.004df190
mov dword [esp + 0x18], 0
jmp 0x4996de
test esi, esi
je 0x4996de
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x498d09
mov eax, dword [ebp + 0x60]
xor ebx, ebx
cmp dword [eax + 0xd4], ebx
je 0x499719
cmp dword [eax + 0xd0], ebx
jne 0x499719
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.00498800
lea ecx, [esp + 0x3c]
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
mov byte [esp + 0x15b0], 7
call fcn.0053feb8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x15b0], 2
call fcn.0053feb8
mov al, byte [esp + 0x821]
mov byte [esp + 0x15b0], 0x12
test al, al
jne 0x4997c1
mov al, byte [esp + 0x820]
test al, al
je 0x499794
mov eax, dword [esp + 0x81c]
xor esi, esi
cmp eax, ebx
jbe 0x4997c1
mov edx, dword [esp + 0x818]
mov ecx, dword [edx + esi*4]
cmp ecx, ebx
je 0x499786
mov eax, dword [ecx]
push 3
call dword [eax]
mov eax, dword [esp + 0x81c]
inc esi
cmp esi, eax
jb 0x499772
jmp 0x4997c1
mov eax, dword [esp + 0x81c]
xor esi, esi
cmp eax, ebx
jbe 0x4997c1
mov ecx, dword [esp + 0x818]
mov ecx, dword [ecx + esi*4]
cmp ecx, ebx
je 0x4997b5
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x81c]
inc esi
cmp esi, eax
jb 0x4997a1
mov eax, dword [esp + 0x818]
mov edi, dword [0x553b00]
push eax
call edi
mov al, byte [esp + 0x819]
add esp, 4
test al, al
mov dword [esp + 0x818], ebx
mov dword [esp + 0x81c], ebx
mov byte [esp + 0x15b0], 0x11
jne 0x49985a
mov al, byte [esp + 0x814]
test al, al
je 0x49982e
mov eax, dword [esp + 0x810]
xor esi, esi
cmp eax, ebx
jbe 0x49985a
mov ecx, dword [esp + 0x80c]
mov eax, dword [ecx + esi*4]
push eax
call fcn.0053feee
mov eax, dword [esp + 0x814]
add esp, 4
inc esi
cmp esi, eax
jb 0x49980d
jmp 0x49985a
mov eax, dword [esp + 0x810]
xor esi, esi
cmp eax, ebx
jbe 0x49985a
mov edx, dword [esp + 0x80c]
mov eax, dword [edx + esi*4]
push eax
call fcn.0053feee
mov eax, dword [esp + 0x814]
add esp, 4
inc esi
cmp esi, eax
jb 0x49983b
mov eax, dword [esp + 0x80c]
push eax
call edi
add esp, 4
lea ecx, [esp + 0xc8]
mov dword [esp + 0x80c], ebx
mov dword [esp + 0x810], ebx
mov byte [esp + 0x15b0], 1
call fcn.004a5170
lea ecx, [esp + 0xaac]
mov byte [esp + 0x15b0], 0
call fcn.004ac660
lea ecx, [esp + 0x1278]
mov dword [esp + 0x15b0], 0xffffffff
call fcn.00501d10
mov ecx, dword [esp + 0x15a8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15a4
ret 8